Open Closed

ABO.IO Project 7.1 Version Integrated with External Authentication Provider (Custom Provider) . #6499


User avatar
0
DiyarDevTeam created

Dear Team,

I hope this message finds you well.

We are currently facing critical technical issues with our External OpenID Connect integration. Specifically, we are encountering difficulties in loading the "Current User" in the "Application Configuration."

I would like to provide a brief summary of the issues for your reference and attached sample Id_token & access_token:

• Successful Login: o We are able to successfully log in with External OpenID and retrieve both the “id_token” and “access_token”. id_token: { "nbf": XXXXX, "exp": XXXXX, "iss": "https://xxxx.xxx.xxx.sa", "aud": "XXXXX", "nonce": "XXXXX", "iat": XXXXX, "at_hash": "XXXXX", "s_hash": "XXXXX", "sid": "XXXXX", "sub": "XXXXX", "auth_time": XXXXX, "idp": "local", "mobile_number": [ "", "xxxxxxxxx" ], "email": [ "", "XXXXX" ], "employee_number": "", "identity_number": "", "preferred_username": "tpmp1", "name": "tpmp1", "email_verified": true, "phone_number": "XXXXX", "phone_number_verified": true, "amr": [ "pwd" ] }

access_token : { "nbf": XXXXX, "exp": XXXXX, "iss": "https://xx.xxxx.xxx.sa", "client_id": "XXXXX", "sub": "XXXXX", "auth_time": XXXXX, "idp": "local", "sid": "XXXXX", "iat": XXXXX, "scope": [ "email", "roles", "profile", "openid", "offline_access" ], "amr": [ "pwd" ] }

• API Authentication: o After obtaining the access_token, we successfully authenticate with the API, receiving the User Unique ID & Is User Authenticated as True.

• Profile Loading Issue: o However, we are unable to load the user profile data, including name, email, role, etc., to update the "Application Configuration" after successful authentication with the “access_token”.

  • Additionally , we are using below versions of Abp as appears in Attachment3 below: Thank you.

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you add these claims to access_token?

    ABP will get these values from claims of access_token

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11