OIDC pass custom claim from id_token

I am using an OIDC connection to authenticate with another party. They are passing a claim on the id_token, that I would like to pass along onto the access_token, so we can read it from the backend.

I know I can add custom claims with the rules, but can I read the id_token of the provider in that as well?

1 Like

I figured out a way to do it. Instead of registering the connection as an OIDC connection, I used a social connection, which allows a custom userprofile script. This allowed me to read the claim from the token and add it to the userprofile.

2 Likes

Hey @jeroen.broekhuizen welcome to the community!

That’s great, I’m glad you were able to get this sorted and thanks a bunch for sharing your solution with the community :smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.