[ KEYCLOAK-12606 ] Passing email in login_hint query parameter during Identity brokering fails when an account already exists

This commit is contained in:
Viswa Teja Nariboina 2019-12-31 10:57:37 -06:00 committed by Stian Thorgersen
parent 03bbf77b35
commit 5082ed2fcb

View file

@ -63,7 +63,7 @@ public class IdpUsernamePasswordForm extends UsernamePasswordForm {
throw new AuthenticationFlowException("Not found serialized context in clientSession", AuthenticationFlowError.IDENTITY_PROVIDER_ERROR);
}
formData.add(AuthenticationManager.FORM_USERNAME, existingUser.getUsername());
formData.putSingle(AuthenticationManager.FORM_USERNAME, existingUser.getUsername());
return context.form()
.setFormData(formData)
.setAttribute(LoginFormsProvider.USERNAME_EDIT_DISABLED, true)