You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Marek Tomczewski edited this page Apr 8, 2015
·
6 revisions
This API handles authorization
Get user JWT token
Param
Type
Description
Value
Content-Type
HTTP Header
content type
Content-type: application/json
Request
POST /v1/api/auth/token
{
"username": "test@example.com",
"password": "Passw0rd"
}
Response 200 OK (application/json)
{
"token": "eyJ0eXAi..."
}
Notes: This call also refreshes the token.
Token expiration:
User JWT token is valid for 24h and contains user access information. On access change, token should be refreshed, to use new privileges. Example situation that require token refresh:
User creates new account - to use new account, token must be refreshed
User has been invited to new account - to have access to this account, token should be refreshed
User account role has been updated, for instance admin privileges were granted - to use new level of access, token must be refreshed