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

Hi,

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=172.24.0.1, 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.

Cheers,

Erwin

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 "11.0.16.1" 2022-08-12 LTS
OpenJDK Runtime Environment (Red_Hat-11.0.16.1.1-1.el8_6) (build 11.0.16.1+1-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.1.1-1.el8_6) (build 11.0.16.1+1-LTS, mixed mode, sharing)