The objective is to provide a simple and easy to integrate,
username/password authentication service.
MOTIVATION
I once try to implement an SPA with extremely simple authentication, but i cannot find any Auth service
with
my simple requirement.
Every authentication provider includes email/phone authentication and multiple SSO, along with anonymous
auth by
some.
And i cannot find one which provider username, password authentication
This auth service will provide exactly what I've wanted!
HOW TO USE
INTRODUCTION
- - Register your project
- - Generate a token
- - Keep the token safe
REGISTRATION
- - endpoint[POST]:
/api/register
- - Authorization Bearer token is required
- - requried form_fields:
- username
- password
- password_confirmation
AUTHENTICATION
- - endpoint[POST]: /api/login
- - Authorization Bearer token is required
- - requried form_fields:
- username
- password
-
- [RESPONSE]: Plain Text Token for the authorized user will be returned
UTILIZATION
- - endpoint: [GET]: /api/user
- - Authorization Bearer token is required
- - Authorized user details will be returned
MANIPULATION
- - endpoint: [GET]: /api/users/
- - Authorization Bearer token is required
- - [RESPONSE]Authorized user details will be returned
DESTRUCTION
- - endpoint: [DELETE]: /api/users/
- - Authorization Bearer token is required
- - The utilization of any resource related to the user will no longer be available.
WHAT GOES AROUND COMES AROUND
Feel free to clone and use the project your own. It is okay to upgrade and for commercial usage, nothing
is
prohibited on my side. No credit required