2. Access Token

SP should obtain the access token by passing the same access code which was received in the previous step.

cURL Request for Token Generation Call

curl --location --request POST 'https://stg-id.uaepass.ae/idshub/token?grant_type=authorization_code&redirect_uri=https://stg-selfcare.uaepass.ae&code=bfe96299-83f4-3ee9-80e4-56c24f5265d3' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Basic c2FuZGJveF9zdGFnZTpzYW5kYm94X3N0YWdl'

Replace code parameter '{Access Code}' with the value received from Access Code.

Response

{
    "access_token": "ae8b5533-be41-350f-a812-00178e262a3a",
    "refresh_token": "b3709437-1a67-356a-a8e4-c0e5f2522ef1",
    "scope": "openid",
    "id_token": "eyJ4NXQiOiJNVGM0WmpFNU9ETXpOR0V6TmpnMFlURmtaRFV3TWpoaE0yUXhNbVJqTVdZNE5qTTFNV1V4TXpRNU5qTTJaVFpqT1RBeVltSTVObVprWmpGbU0ySTJNZyIsImtpZCI6Ik1UYzRaakU1T0RNek5HRXpOamcwWVRGa1pEVXdNamhoTTJReE1tUmpNV1k0TmpNMU1XVXhNelE1TmpNMlpUWmpPVEF5WW1JNU5tWmtaakZtTTJJMk1nX1JTMjU2IiwiYWxnIjoiUlMyNTYifQ.eyJhdF9oYXNoIjoiRkhnZzJWaF8xVmFVMjc3YjlWdE9sdyIsInN1YiI6IjM2Y2MwNTY0LTBlZWYtNGE0NS05MTY1LTFmYWJhODI1MDI0ZCIsImdlbmRlciI6IkZlbWFsZSIsImFtciI6W10sImlzcyI6Imh0dHBzOlwvXC9zdGctaWRzLnVhZXBhc3MuYWU6NDQzXC9vYXV0aDJcL3Rva2VuIiwibW9iaWxlIjoiOTcxNTU2ODcxMDAzIiwibGFzdG5hbWVFTiI6IlNoYXJtYSIsImZ1bGxuYW1lRU4iOiJTYXVteWEgU2hhcm1hIiwidXVpZCI6IjM2Y2MwNTY0LTBlZWYtNGE0NS05MTY1LTFmYWJhODI1MDI0ZCIsInNpZCI6IjhkMWM0MzdjLTM2MDgtNDE0MC05NTM1LWQ4MTFiYzY0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