Closed
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
authentication
Describe the bug
Using the identity-provider-redirector
the LOGIN_HINT on the session is not forwarded to the IDP.
Having a look at the code it seems like the redirect function is always called with the loginHint being null:
Instead of always using null here, the value should be taken from the AuthenticationSession, maybe like this:
protected void redirect(AuthenticationFlowContext context, String providerId) {
String loginHint = context.getAuthenticationSession().getClientNote(OIDCLoginProtocol.LOGIN_HINT_PARAM);
redirect(context, providerId, loginHint);
}
I stumbled upon this issue when having a look at: sventorben/keycloak-home-idp-discovery#396 (reply in thread)
Version
25.0.5 (but latest should also be affected)
Regression
- The issue is a regression
Expected behavior
If there is a LOGIN_HINT set on the LoginSession this should be forwarded.
Actual behavior
None is forwarded.
How to Reproduce?
Setup flow like mentioned here: sventorben/keycloak-home-idp-discovery#396 (reply in thread)
Anything else?
No response