Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#10616] Incorrect username logged for federated accounts #10662

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

rmartinc
Copy link
Contributor

@rmartinc rmartinc commented Mar 9, 2022

Closes #10616

Just adding two lines to set the ATTEMPTED_USERNAME when doing a brokered login. It's added when a federated user is found or when the first login flow is needed. The latter is just in case of an error or similar.

Also added a new test class because I didn't find a good place to add the tests. So I created a new OIDC broker test that extends AbstractBrokerTest and checks the events, normal login (first login flow and existing) and doing a form wrong login before (same two cases).

Copy link
Contributor

@mposolda mposolda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rmartinc Thanks!

@mposolda mposolda merged commit a7c8aa1 into keycloak:main Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect username logged for federated accounts
2 participants