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) | 1 | 4060 | December 14, 2018 | |
| /userinfo endpoint | 1 | 8838 | January 4, 2023 | |
| Custom field to userinfo for user | 1 | 638 | February 24, 2024 | |
| Custom claims missing from tokens | 4 | 4264 | April 21, 2022 | |
| Can't find custom claims in idToken | 5 | 111 | March 14, 2025 |