When a user logs in a token should be generated and stored in the 'tokens' table. This token is replied to the user in the response and it's used for subrequest authentication for other services instead of constantly passing around the password.
We need the following:
an endpoint to submit the token for checking
a service to check the token for that username on that repository is valid
When a user logs in a token should be generated and stored in the 'tokens' table. This token is replied to the user in the response and it's used for subrequest authentication for other services instead of constantly passing around the password.
We need the following: