External-to-internal token exchange doesn't work without user info
#12,546 opened on Jun 16, 2022
Repository metrics
- Stars
- (34,398 stars)
- PR merge metrics
- (Avg merge 6d 19h) (384 merged PRs in 30d)
Description
Describe the bug
I've set up Keycloak with Azure Active Directory as an identity provider. In settings, there's the possibility to enable or disable the userinfo call of this provider. Since Azure requires a separate scope to make that call, I deactivated it. This works as intended for a browser login, however, the token exchange fails with this setting.
Version
18.0.0
Expected behavior
The userinfo call should be optional for token exchange, too.
Actual behavior
Token exchange isn't possible without it and there is an error message in the cli telling, that the userinfo call wasn't possible.
How to Reproduce?
No response
Anything else?
It works, if I turn on userinfo and use a token from Azure that allows the userinfo call.