Skip to content

Commit

Permalink
[ KEYCLOAK-12606 ] Passing email in login_hint query parameter during…
Browse files Browse the repository at this point in the history
… Identity brokering fails when an account already exists
  • Loading branch information
viswatejan authored and stianst committed Jan 9, 2020
1 parent 03bbf77 commit 5082ed2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected LoginFormsProvider setupForm(AuthenticationFlowContext context, Multiv
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)
Expand Down

0 comments on commit 5082ed2

Please sign in to comment.