Create Authorization Token
POST/auth/token
Create Authorization Token
Request
- application/x-www-form-urlencoded
Body
required
The Authorization Token Request
clientId stringrequired
Client ID
clientSecret stringrequired
Client Secret
grantType stringrequired
Possible values: [client_credentials
, password
]
Default value: client_credentials
Token Grant Type
scope stringrequired
Token Scope
username string
password string
Responses
- 200
The Authorization Token
- application/json
- Schema
- Example (from schema)
Schema
accessToken stringrequired
Access Token
refreshToken stringnullable
Refresh Token
expiresIn numberrequired
Expiration Time
tokenType stringrequired
Token Type
scope stringrequired
Token Scope
idToken stringnullable
Id token
refreshExpiresIn numbernullable
refresh token expiration
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"expiresIn": 600,
"tokenType": "Bearer",
"scope": "openid accountId username roles permissions status entityUser",
"idToken": "Bearer",
"refreshExpiresIn": "Bearer"
}
Loading...