# Keycloak admin API check user credentials without creating a session

**URL:** <https://forum.keycloak.org/t/keycloak-admin-api-check-user-credentials-without-creating-a-session/6813>\
**Category:** Getting advice\
**Tags:** admin-console\
**Created:** [January 15, 2021, 8:30am UTC](https://forum.keycloak.org/t/keycloak-admin-api-check-user-credentials-without-creating-a-session/6813 "2021-01-15T08:30:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanfai](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@stefanfai](https://forum.keycloak.org/u/stefanfai)\
**Post date:** [January 15, 2021, 8:30am UTC](https://forum.keycloak.org/t/keycloak-admin-api-check-user-credentials-without-creating-a-session/6813/1 "2021-01-15T08:30:17Z")

</div>

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.
