Skip to main content

Token

Token

Path Parameters
    workspaceName string required
Header Parameters
    Authentication string
    Example: Bearer {{token}}
    Cache-Control string
    Example: no-cache

Request Body

grant_typestring

Grant type of the client.

client_idstring

Application Id of the application

client_secretstring

Application secret. If the app is confidential you get the app secret

redirect_uristring

Redirect URI

codestring

If the grant type is authorization_code the code is needed to get token

Sample Request Body
{
"grant_type":"authorization_code",
"client_id":"{client_id}",
"client_secret":"{client_secret}",
"redirect_uri":"https://debugger.qa.eztoauth.com/debug",
"code":"{code}"
}

Response

access_tokenstring

JWT access token from the IAM

expires_innumber

Expiration timestamp of token

refresh_expires_innumber

Expiration timestamp of refresh token

refresh_tokenstring

JWT refresh token. It can can be used after the access token is expired.

token_typestring

It specifies the what kind token is user received (access, refresh, id)

id_tokenstring

JWT ID token. It contains user information

not-before-policynumber

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_statestring

Session state hash value

scopestring

It contains what are scopes are available

Sample Response
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJCcmZ0Wk1RSmNxSmYwdnNDU2g0MlZkWXl1Rkx6QU9sMDJDcjJxNlIzZFlNIn0.eyJleHAiOjE3MDQyMzQ2MTcsImlhdCI6MTcwNDE5ODYzMiwiYXV0aF90aW1lIjoxNzA0MTk4NjE3LCJqdGkiOiI4YWE5ZjIzNS00NWVlLTQ4MWEtYWYxYy1mYjUyOGZjMTU1MjEiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvYXV0aC9yZWFsbXMvZ3Jvb3RhbiIsImF1ZCI6WyJ3b3JrZm9yY2UtbW9kZS1yZWFsbSIsInNhbXBsZS1yZWFsbSIsInRlc3QtcmVhbG0iLCJkZW1vLXJlYWxtIiwicHJvZmlsZSIsImdyb290YW4tcmVhbG0iXSwic3ViIjoiNGZmZDliMDAtZWM1OC00NDcwLWEzYWUtZTNjMzhkNmQyYjhkIiwidHlwIjoiQmVhcmVyIiw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YwZWIxYTc2IiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInByZWZlcnJlZF91c2VybmFtZSI6ImphbmFydGhhbmFuLnRAZ3Jvb3Rhbi5jb20iLCJlbWFpbCI6ImphbmFydGhhbmFuLnRAZ3Jvb3Rhbi5jb20ifQ.M_XumoVw8hzGmjVrDYYLhbuyvpy4IHjh-oJ09FFSfLcvihkbIqx-nCnPiTu0SIptps-89wOxD1DEGKPaujwBXQsk7-TNR20y-EcXYcgVxJCpLSDFUzmfabUEiBHd4rK2Bb4RM_q65PeUQkeEg_6-tRNNlvk3MOxk2yukJZ34aVs0dnPJzfIHhuUJPT2rtkZ9cRdg6qSjnsPcBwR9eoajBDFasfrLTI7TWaQ9fRX3-PGM3S0QOOei1D8GRpgSAiQNtlkJmJPn5YeDOl5TQSQIu_Zp7agkkEGWvg50p8_VgmkcaRJzxSU0H5esFLzusrWaT10tH1nNqkO6SUyB5JD2wg",
"not-before-policy": 0,
"session_state": "696594a4-3697-489a-8250-b7dc60eb1a76",
"scope": "openid profile email"
}
HTTP STATUS CODE SUMMARY
200 - OKSuccessfully done.
201 - OKSuccessfully created.
400 - Bad RequestThe request was unacceptable, often due to missing a required parameter.
401 - UnauthorizedUnauthorized access try with correct access.
402 - Request FailedThe parameters were valid but the request failed.
403 - ForbiddenThe Application doesn't have permissions to perform the request.
404 - Not FoundThe requested resource doesn't exist
500 - Server ErrorsSomething went wrong on ezto auth's end. (These are rare.)
503 - Server ErrorsService temporarily unavailable

Loading...