Get a New Access Token and Refresh Token
post
/ic/api/process/v1/auth/token/permission
Gets a new access token and a new refresh token using basic authentication.
This is the initial call to make to get a token pair, an access token and a refresh token, for subsequent access to Decision Modeling Service. The caller may use the access token to access Decision Modeling Service for 15 minutes, while keeping the refresh token for obtaining a new access token upon the expiration of the initial access token.
See Refresh the Access token for getting a new access token. See Decision Modeling Service for detecting access token expiration.
Request
Header Parameters
-
Authorization(required): string
Authorization header MUST be set to type Basic, and base64 encoded username and password pair must be providedDefault Value:
Basic XXXXXXXXXX
Security
-
basicAuth: basic
Type:
basic
Description:HTTP Basic Authentication. Works over `HTTP` and `HTTPS`
Response
Supported Media Types
- application/json
- text/plain
200 Response
Successful Response
Example Response (application/json)
{
"accessToken":{
"jwtToken":"JSUzI1NiIsInR5cCI6IkpX9.eyJleHAiOjC01YzgwOW4iOiJqY29vcGVyIiwQ.Ay6FY2LRNslKXQHVw73JC5UyF7741cg",
"expiry":900
},
"refreshToken":{
"jwtToken":"eMUpQNFRZZTEybyJ9.eyJleHA1NjQ3fQ.L9GSU5Z7CI0mup_9fyQ80D4",
"expiry":43200
}
}
401 Response
Unauthorized