https://www.ory.sh/ logo
s

strong-musician-49627

05/06/2022, 7:13 AM
Hey all. Quick Q: We have added custom claims to our ID Token, yet when remembering the consent result all further token exchanges or userinfo calls will not include those claims in the ID token anymore. Is this by design?
m

magnificent-energy-493

05/06/2022, 9:02 AM
I believe this is what you are looking for: https://www.ory.sh/docs/hydra/advanced#adding-custom-claims-top-level-to-the-access-token So I think you need to add some configuration for your claim in
oauth2.allowed_top_level_claims
There is also an old ongoing discussion (if you like to read a lot about the considerations around custom claims): https://github.com/ory/hydra/issues/1748
s

strong-musician-49627

05/06/2022, 10:47 AM
Yeah that one is a prerequisite, but had it in. Finally found the issue. When skipping, one needs to apply some custom login here and also rename some fields, symmetrically to here. Works like a charm then.
m

magnificent-energy-493

05/06/2022, 1:12 PM
Good to hear 🙌
2 Views