Skip to content
Discussion options

You must be logged in to vote

To your first question: no, not in 2.0.x. handleCallback builds the claims map from the ID token only and resolves username and email from that map (AuthenticationCodeFlowHandler.java#L550-L556). The only places that read userinfo_endpoint are the config validators (CustomOidcValidator.java#L170, OidcDiscoveryValidator.java#L46), and oidcClientConfig.json has no flag for it. Same on main today. The two symptoms you describe are exactly what findEmailFromClaims does: with a mapping it requires a claim containing @ or throws, without one it takes the first jwtPrincipalClaims match and appends principalDomain (SecurityUtil.java#L147-L172).

I couldn't find an existing issue or PR about readin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@muhammetcetinyamac
Comment options

Answer selected by muhammetcetinyamac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants