This is a microservice for managing authentication & protecting routes using Json Web Token.
- Start a database.
- Uncomment the
init_users
method in the entry point file. - Start the server.
- Submit the following POST request to
http://localhost:8081/users/login
{
"username": "Admin",
"password": "123"
}
The generated token can be found in the response headers under Authorization
.