A login utility that will verify users to further access contents of a website or a service at /signin endpoint
[Update] The MicroService also registers new users at /register endpoint
-
Signin API
Endpoint : /signin
Method : POST
Request Payload :{"userid": "username","password": "pass@123"}
Response :{"token": <tokenString>}
-
Resgister API Endpoint : /register
Method : POST
Request Payload :{"userid": "username","password": "pass@123"}
Response : HTTP response code -
Validate API
Endpoint : /validateToken
Method : POST
Request Payload :Header : {"Authorization": "Bearer <token>"}