A generic central authentication service (CAS) that supports user sign-up and login & and request validation, built with Python Flask and JWT
Here are the current routes, as I'll be adding more features in the future!
HTTP Request Type: POST
Accepts (JSON): { 'email': {email string}, 'password': {password string} }
Returns (JSON): { 'response': {string}, 'status': {integer} }
HTTP Request Type: POST
Accepts (JSON): { 'email': {email string}, 'password': {password string} }
Returns (JSON): { 'token': {string}, 'status': {integer} }
HTTP Request Type: PATCH
Accepts (JSON): { 'crypto_cost_session': {token string}, 'new password': {password string} }
Returns (JSON): { 'response string': {string}, 'response code': {integer} }
HTTP Request Type: POST
Accepts (JSON): { 'token': {string} }
Returns (JSON): { 'is_user_authorized': {boolean}, 'user_id': {string}, 'response code:' {integer} }
Issued JSON web token payloads are of the form:
{
'email': {email string},
'user id': {id string},
'exp': {expiry date integer}
}