Log in Register

Username Password Auth is an Authentication as a Service

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:
    1. username
    2. password
    3. password_confirmation
AUTHENTICATION
  1. - endpoint[POST]: /api/login
  2. - Authorization Bearer token is required
  3. - requried form_fields:
    1. username
    2. password
  4. - [RESPONSE]: Plain Text Token for the authorized user will be returned
UTILIZATION
  1. - endpoint: [GET]: /api/user
  2. - Authorization Bearer token is required
  3. - Authorized user details will be returned
MANIPULATION
  1. - endpoint: [GET]: /api/users/USER_ID
  2. - Authorization Bearer token is required
  3. - [RESPONSE]Authorized user details will be returned
DESTRUCTION
  1. - endpoint: [DELETE]: /api/users/USER_ID
  2. - Authorization Bearer token is required
  3. - 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