1. Authorization Code
Last updated
Last updated
Open the below URL to authenticate
SP need to use the below scopes to their first authentication call to retrieve the desired attributes of the user profile:
Example:
Page will redirect to UAEPASS login page.
Provide the login identifier and confirm the push notification on the mobile. SP should use below code to pass to Access token Call.
Note: Copy the {Authorization Code} to be used in next step to get the access token
Response:
GET
https://stg-id.uaepass.ae/idshub/authorize
Once the authentication of the user is complete, and the user has granted authorization, the application receives an HTTP GET request of the following type from the user’s browser. This HTTP request is an OAuth 2.0 authorization response. The application receives this request at the redirect URL specified in the authorization or authentication request message (the redirect_uri parameter) or in the registered redirect URL.
response_type
string
Must take the value, which indicates that an code authorization code is requested.
redirect_uri
string
Redirect URI to the application.
The application waits to receive at this URI the authorization or authentication response message with the authorization code.
client_id
string
Identifier of the client application. (To be shared by UAEPASS Team)
state
string
We recommend using this parameter to safeguard against CSRF attacks. The application can also include additional information in this parameter, such as the URL to which the browser is to be redirected when the authorization or authentication finishes. (To include multiple data in the value of this parameter, the application must serialize it as it sees fit.)
scope
string
List of values, separated by spaces, that represent the scope of the authorization that the application wants to obtain. It queries the scopes required for accessing the resources or services in question. (To be shared by UAEPASS Team if its value is other than specified in sample above)
acr_values
string
Defines conditions for authenticating the user (minimum levels or specific flows) who must authorize the access. (To be used as specified in sample or check with UAEPASS team for more details)
ui_locales
string
Language parameter to be sent to render English or Arabic login pages of UAEPASS and below are the possible values: English page : en Arabic page : ar