User authentication service simply operates user actions such as authentication and authorization It produces Json Web Tokens for successfull operations.
- iss: Issuer of this token
- sub: Unified Unique Id for user that requested
- exp: Timestamp of expiration date
- aud: Audience claim that describes which domains will use this token
- id: Unified Unique Identifier that describes user in the database
- uname: A choosen unique username that describes user in the database
- email: Contact mail of the user
- password: Hashed pass code that using for authentication
- name: Name that describes user
- surname: Surname that describes user
- createdTime: The time when user created
- updatedTime: The last time when datas of the user updated
{
"uname": "string",
"password": "string",
"eMail": "string",
"name": "string",
"surname": "string"
}
Response code | Description |
---|---|
201 | User created successfully |
400 | Wrong parameters in post body |
This request does not need a body Header param:
- Authorization: Bearer jwt token that contains id of the user to be deleted
Response code | Description |
---|---|
200 | User deleted successfully |
400 | Wrong parameters in request |
404 | User cannot be founded |