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).

Access Token API

POST https://stg-id.uaepass.ae/idshub/token

Headers

Name
Value

Content-Type

multipart/form-data

Authorization

Basic {credentials}

Parameters

Name
Type
Description

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.


{
    "access_token": "856b9b82-2b52-3e20-8aab-36a5d9a97025",
    "scope": "string",
    "token_type": "Bearer",
    "expires_in": expiry time
} 

Response parameters

Name
Description

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?