Identity microservice is designed to manage access to application resources. This microservice generates tokens for JWT-authentication.
The microservice is accessible both through the external port (3004) or through the API Gateway.
The following access roles are available:
Admin
- full access to any patient data.User
- limited data access, only single patient data is available.
For login, use POST request:
http://localhost:3000/accounts/login
with the following body:
{
"Email": "[email protected]",
"Password": "your_password"
}
For registration, use POST request:
http://localhost:3000/accounts/register
with the following body:
{
"Email": "[email protected]",
"Password": "your_password",
"Username": "name",
"Role": 1,
"IsActive": true
}
For more details on API of Identity microservice, use Swagger UI:
http://localhost:3004/swagger