I’d like to include custom claims in the userinfo response. I have succeeded by creating a rule that adds a custom namespaced claim to the ID token. However, the claim also appears in the ID token (obviously). Is there a way to avoid that, i.e. keep the ID token “slim”? My client code doesn’t always need these custom claims, so it’d be nice to only have them in the userinfo response.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Only include specific claims in UserInfo (OIDC Compliant Flow) | 2 | 4026 | December 14, 2018 | |
How do you return custom claims to userinfo endpoint when using OIDC? | 3 | 6891 | March 2, 2018 | |
/userinfo endpoint | 2 | 8379 | January 4, 2023 | |
Custom field to userinfo for user | 2 | 565 | February 24, 2024 | |
What is the correct way to add custom claims to id_tokens and the /userinfo endpoint and get the complete user profile? | 2 | 13448 | March 2, 2018 |