|
|
To avoid 404 errors, ensure that no cookies are cached in the tenant.
|
|
|
If you are using your local environment, send a POST request to https://localhost:7070/auth/token.
|
Authorization: Bearer <previously retrieved access token>
|
|
If a CSRF issue occurs, get the CSRF token at https://[hostname]/resources/js/csrf_script.
|

POST https:///auth/token
|
Parameter
|
Description
|
|---|---|
|
grant_type
|
Must be refresh_token.
|
|
refresh_token
|
Refresh token previously received by the client application.
|
|
client_id
|
Client ID of the external application.
|
|
|
All parameters must be URL-encoded.
|
curl https://mydomain.io/sec/auth/token -d "grant_type=refresh_token&client_id=57d22b28e0c5962541889195&refresh_token="
|
Status Code
|
Response Body
|
Description
|
|---|---|---|
|
400
|
{"error":"invalid_request"} or {"error":"invalid_grant"}
|
Bad request, missing required parameters, or grant_type is not refresh_token.
|
|
400
|
{"error":"invalid_client","error_description":"client is invalid"}
|
Client does not exist.
|
|
401
|
{"error":"invalid_token","error_description":"invalid token provided"}
|
The refresh token does not exist, is expired, or does not belong to the client_id.
|
|
200
|
{"access_token":"new access token","token_type":"bearer","expires_in":86400}
|
New access token issued.
|
POST https://<host>/sec/auth/token/revoke
|
Parameter
|
Description
|
|---|---|
|
token
|
Access token or refresh token to be revoked.
|
|
client_id
|
Client ID to which this token was issued.
|
|
token_type_hint
|
Token type (optional).
|
|
Status Code
|
Message
|
|---|---|
|
200
|
Token revoked.
|
|
400
|
Bad request, token parameter is not provided, or client id is not provided.
|
|
500
|
Server error, or any error that occurred when querying or revoking access or refresh tokens.
|
POST https://<host>/sec/auth/token/revoke
|
Parameter
|
Description
|
|---|---|
|
token
|
Access token or refresh token to be revoked.
|
|
client_id
|
Client ID to which this token was issued.
|
|
token_type_hint
|
Token type (optional).
|
|
Status Code
|
Message
|
|---|---|
|
200
|
Token revoked.
|
|
400
|
Bad request, token parameter is not provided, or client id is not provided.
|
|
500
|
Server error, or any error that occurred when querying or revoking access or refresh tokens.
|