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

Strange behavior of Keycloak::Internal.create_simple_user #24

Open
arthurstomp opened this issue May 8, 2020 · 0 comments
Open

Strange behavior of Keycloak::Internal.create_simple_user #24

arthurstomp opened this issue May 8, 2020 · 0 comments

Comments

@arthurstomp
Copy link
Contributor

Hi,

I've noticed that when Keycloak's realm is set to user "Email as username", the method Keycloak::Internal.create_simple_user raises a Keycloak::UserLoginNotFound. Which is confusing because the user was actually created in Keycloak with email replacing the username (as expected).

keycloak_email_as_username_000

Digging a bit into the code I've found that this line might be the source of the trouble.

user = get_user_info(username, true, client_id, secret) if new_user

I have some ideas on how to solve this. I will try it later when i get some free time.

cheers!

@arthurstomp arthurstomp changed the title Strange behavior of Keycloak::Internal.create_simple_user Strange behavior of Keycloak::Internal.create_simple_user May 8, 2020
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

No branches or pull requests

1 participant