Keycloak admin API check user credentials without creating a session

Hello everyone,

I have implemented a custom login page and I’m using the Java Keycloak API to handle the authentication. Is there a way to check the user’s credentials without creating a session?

If I try to check the credentials by logging in using Direct Access Grant, I get response 400 for users who still have pending required actions (like VERIFY_EMAIL), even if their credentials are correct.