Get Token from Authorization Code
Get Token from Authorization Code
Path Parameters
Header Parameters
Request Body
grant_type
string
Grant type of the client.
client_id
string
Client id of SSO app.
redirect_uri
string
Redirect URI for SSO app.
code
string
Authorization code for SSO App.
{
"grant_type": "authorization_code",
"client_id": "sso-desktop",
"redirect_uri": "https://ssodesktop/login/grootan",
"code": "{{code}}",
}
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
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJCcmZ0Wk1RSmNxSmYwdnNDU2g0MlZkWXl1Rkx6QU9sMDJDcjJxNlIzZFlNIn0.eyJleHAiOjE3MDQzMTEwNTAsImlhdCI6MTcwNDI3NTE3MywiYXV0aF90aW1lIjoxNzA0Mjc1MDUwLCJqdGkiOiJkZDZhZTRkYi1lZGExLTQ1MmEtOTc1OC02MDg5YmZjYjg1OWQiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvYXV0aC9yZWFsbXMvZ3Jvb3RhbiIsImF1ZCI6WyJ3b3JrZm9yY2UtbW9kZS1yZWFsbSIsInNhbXBsZS1yZWFsbSIsImRlbW8tcmVhbG0iLCJzYW1wLXJlYWxtIiwicHJvZmlsZSIsImphbmEtcmVhbG0iLCJqYW5hMS1yZWFsbSIsImdyb290YW4tcmVhbG0iXSwic3ViIjoiNGZmZDliMDAtZWM1OC00NDcwLWEzYWUtZTNjMzhkNmQyYjhkIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoic3NvLWRlc2t0b3AiLCJub25jZSI6IjAwYzgxZTJiLWVkZjAtNDc2Yi04NTkyLTZlYTVlODFkZmY5NiIsInNl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foclNTolBk9YFRiH3eI1ee3C8vbkSk779n1X_Q-bgi8YLLcnsx_DRLJEGoXSYp-BTBqfcNoR-Q",
"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 |