Login with email not working. What am I missing here?


I have enabled the Login with Email and disabled the Emails as Username checkbox but I am unable to login from a web console with email address (username works fine).

[org.keycloak.events] (executor-thread-1) type=LOGIN_ERROR, realmId=myrealm, clientId=web_app, userId=null, ipAddress=, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=http://localhost:8080/login/oauth2/code/oidc, code_id=827de63f-8f49-4e62-99c7-123456789012, username=some.user@acme.com, authSessionParentId=827de63f-8f49-4e62-99c7-123456789012, authSessionTabId=HivLcRv_Tks

I am using 19.03. There isn’t anything in the version-20 release notes that mentions this.

I assume I am doing something wrong because this seems basic functionality to me. I cannot figure out what it is though. Any suggestions would be greatly appreaciated.



What is the JDK/JRE you are currently using . I faced same issue in jre 8, Upgrading to JDK-11 solved this issue.

Hi girish, thanks for your response.

I am running a gleroy/keycloak-bcrypt docker container which is based on the official jboss/keycloak.
It is running Redhat Java-11.
I forgot to mention that changed the DB from Postgress to MySQL.

[root@1e41999d725d /]# java -version
openjdk version "" 2022-08-12 LTS
OpenJDK Runtime Environment (Red_Hat- (build
OpenJDK 64-Bit Server VM (Red_Hat- (build, mixed mode, sharing)