I'm having trouble getting a custom claim attribute to come through in the id_token
. I've got the scope set to openid
and I've added the custom attribute to the Connected App (tenantId
). I also tried implementing a connected app plugin and overiding the customAttributes
method.
I checked Configure Id Token in the connected app config page and made sure custom claims was ticked (along with standard claims).
All of the above, and I keep getting back an id_token
without the additional claim information. Have I missed anything? I know that i can make a call to the UserInfo
endpoint, but i'm trying to avoid that.
Best Answer
I am able to get custom attributes in the
id_token
upon enabling Include Custom Attributes as explained in the release notesFollowing is what I get when I try the flow using https://openidconnect.herokuapp.com/