Get a JWT token or refresh a new one.
POST https://api.nexway.store/iam/tokens
The request body takes a complete TokenRequest resource, containing the following writable properties:
{
"clientSecret": "string",
"grantType": "string",
"password": "string",
"realmName": "string",
"username": "string"
}
Name | Type | Description | Additional |
---|---|---|---|
clientSecret | string |
Client secret |
Optional |
grantType | string |
Request type Possible values are:
|
Optional |
password | string |
Password |
Optional |
realmName | string |
Realm name |
|
username | string |
User name |
Optional |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK Success |
AccessTokenResponse |
401 | Unauthorized Unauthorized |
|
403 | Forbidden Forbidden |
|
404 | Not Found Not Found |
|
500 | Internal Server Error Failure |