Obtain Access Token
The SP web application needs to obtain the access token from the available “code” which is received from UAE PASS in previous step (Obtain Authorization Code).
Token API request should be a back channel request
Access Token API
POST
https://stg-id.uaepass.ae/idshub/token
Headers
Content-Type
multipart/form-data
Authorization
Basic {credentials}
Parameters
grant_type
string
authorization_code
redirect_uri
string
Redirect URI to the application.
code
string
Authorization code received from previous step. (Obtain Authorization Code step).
Response
In response, UAE PASS issues a bearer-type OAuth 2.0 access token and returns it in a JSON structure. JSON object contains the access token and associated information.
Response parameters
access_token
Access token generated by UAE PASS Server
token_type
Type of access token. Always has the “Bearer” value.
expires_in
Lifetime (in seconds) of the access token.
scope
Scopes granted to those to which the access token is associated, separated by spaces.
Last updated
Was this helpful?