Created new user but cannot log in with provided credentials

I created a new user in Keycloak and checked the Verify Email button. But when they try to log in they get an error Invalid username or password.

How did you create the user account? Is it via cli or admin console or client app? Did you check if the user isn’t locked? @richie

I created the user account in http://localhost:8080/admin/master/console/#/myrealm/users - gave them a user name and password and then logged out and tried to log in again. How would I check if they are locked?

I try to log in using the new user at localhost:8080

I think the issue is I was going to the wrong realm. The user is in a new realm I created and I was trying to log into the master realm. However, when I try to log into the other realm it just keeps spinning on log in.

so you should try to login to that realm myrealm via a client and you can use one of the defaults clients which is account like this: http://localhost:8080/realms/myrealm/account/

you can’t create a user in a realm and expect that user to be able to login to master realm like this one http://localhost:8080/admin/master/console/

master realm is supposed to be the realm for the keycloak super admins that can control everything about keycloak.

if you want to make a super admin make a user in the master realm so he can access the admin console and see everything. But if you wish to make an admin on a specific realm then make a user in myrealm and give him pretty much all of the roles and he can access the admin console for the realm myrealm only. From here: http://localhost:8080/admin/myrealm/console