Skip to content

A central auth service, supporting user sign-ups, logins & external user validation requests

Notifications You must be signed in to change notification settings

Justin-Kwan/CAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

Central-Authorization-Service

A generic central authentication service (CAS) that supports user sign-up and login & and request validation, built with Python Flask and JWT

Available API Routes

Here are the current routes, as I'll be adding more features in the future!

localhost:5000/signupSubmit

    HTTP Request Type: POST
    Accepts (JSON): { 'email': {email string}, 'password': {password string} }
    Returns (JSON): { 'response': {string}, 'status': {integer} }

localhost:5000/loginSubmit

    HTTP Request Type: POST
    Accepts (JSON): { 'email': {email string}, 'password': {password string} }
    Returns (JSON): { 'token': {string}, 'status': {integer} }

localhost:5000/resetPassword

    HTTP Request Type: PATCH
    Accepts (JSON): { 'crypto_cost_session': {token string}, 'new password': {password string} }
    Returns (JSON): { 'response string': {string}, 'response code': {integer} }

localhost:5000/authorizeUser

    HTTP Request Type: POST
    Accepts (JSON): { 'token': {string} }
    Returns (JSON): { 'is_user_authorized': {boolean}, 'user_id': {string}, 'response code:' {integer} }

JSON Web Token Implementation

Issued JSON web token payloads are of the form:

    {
      'email': {email string},
      'user id': {id string},
      'exp': {expiry date integer}
    }

About

A central auth service, supporting user sign-ups, logins & external user validation requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published