16
Views
1
Comments
[OIDC Client] Parse_UserClaims action doesn't fill output variable UserClaimsLocal
oidc-client
Reactive icon
Forge asset by João Barata
Application Type
Reactive

In the Parse_UserClaims action the JSON_Objectify gives as a result the same output as the action JSONSelect has:

"{""key"":""name"",""value"":""TEST OIDC""}"

This is causing JSONDeserializeUserInfo to result in an empty structure UserClaimsLocal.

So my user is created in the Outsystems database with an empty Name.

What is the cause of this?

2020-10-08 19-51-35
João Barata
Staff

Hi @Raymond Vermeer ,


Have you configured your application to request the "profile" and "email" scopes?


What that JSONSelect is doing is only returning the claims that have the following values:

  • "name"
  • "email"
  • "preferred_username"
  • "given_name"
  • "family_name"
  • "phone_number"

Some of the above claims are only present if the correct scope is requested.

For the "email" claim you need to request the "email" scope.
For the "phone_number" claim, you need to request the "phone" scope.
For the remaining ones, you need to request the "profile" scope.

If you are getting an empty list, you are most likely not getting those claims.
If you can debug it, confirm if you are receiving the claims, and then confirm if you are requesting the correct scopes.
If you are and are still not getting the claims, you need to confirm if they are properly configured on your external identity provider.

Regards,


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.