Token Exchange
Token Exchange
Path Parameters
workspaceName string required
Header Parameters
Authentication string
Example: Bearer {{token}}
application/json
Request Body
grant_type
string
Grant type of the client.
client_id
string
Client id of SSO app.
refresh_token
string
Refresh Token for the SSO App.
Sample Request Body
{
"grant_type": "refresh_token",
"client_id": "sso-desktop",
"refresh_token": "{{token}}",
}
Response
access_token
string
Access token for the SSO App.
expires_in
number
Expiration timestramp for Access Token.
refresh_expires_in
number
Expiration timestramp for Refresh Token.
refresh_token
string
Refresh Token for the SSO App.
token_type
string
Type of tokens mentioned
id_token
string
Id token for the SSO App.
not-before-policy
number
It is a timestamp attribute associated with a client. It represents the point in time before which certain operations or actions related to the client are not allowed.
session_state
string
state of the session
scope
string
Scope for Access
Sample Response
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJCcmZ0Wk1RSmNxSmYwdnNDU2g0MlZkWXl1Rkx6QU9sMDJDcjJxNlIzZFlNIn0.eyJleHAiOjE3MDQzMTEwNTAsImlhdCI6MTcwNDI3NjA5OSwiYXV0aF90aW1lIjoxNzA0Mjc1MDUwLCJqdGkiOiJkZDY3MTFjMi1lNTY4LTQ2MGYtYTNhOC0wYzk0OWJhMTBlZTgiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvYXV0aC9yZWFsbXMvZ3Jvb3RhbiIsImF1ZCI6WyJ3b3JrZm9yY2UtbW9kZS1yZWFsbSIsInNhbXBsZS1yZWFsbSIsImRlbW8tcmVhbG0iLCJzYW1wLXJlYWxtIiwicHJvZmlsZSIsImphbmEtcmVhbG0iLCJqYW5hMS1yZWFsbSIsImdyb290YW4tcmVhbG0iXSwic3ViIjoiNGZmZDliMDAtZWM1OC00NDcwLWEzYWUtZTNjMzhkNmQyYjhkIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoic3NvLWRlc2t0b3AiLCJub25jZSI6IjAwYzgxZTJiLWVkZjAtNDc2Yi04NTkyLTZlYTVlODFkZmY5NiIsInN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Cl3JBZsYeni1LTMQu-6Udf7T0tALR6ucoxF9p982bg-VAGLz17xk7kl_fVlt0GynK75eRiKlVg",
"not-before-policy": 0,
"session_state": "db36f0ff-b21e-4d0c-bdc7-6c4086880f3d",
"scope": "openid profile email"
}
HTTP STATUS CODE SUMMARY | ||
---|---|---|
200 - OK | Successfully done. | |
201 - OK | Successfully created. | |
400 - Bad Request | The request was unacceptable, often due to missing a required parameter. | |
401 - Unauthorized | Unauthorized access try with correct access. | |
402 - Request Failed | The parameters were valid but the request failed. | |
403 - Forbidden | The Application doesn't have permissions to perform the request. | |
404 - Not Found | The requested resource doesn't exist | |
500 - Server Errors | Something went wrong on ezto auth's end. (These are rare.) | |
503 - Server Errors | Service temporarily unavailable |
Loading...