# Validate username and password

**URL:** <https://community.auth0.com/t/validate-username-and-password/48705>\
**Category:** Get Help\
**Created:** [August 26, 2020, 9:41pm UTC](https://community.auth0.com/t/validate-username-and-password/48705 "2020-08-26T21:41:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uday81](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/uday81/32/23822_2.png) [@Uday81](https://community.auth0.com/u/Uday81)\
**Post date:** [August 26, 2020, 9:41pm UTC](https://community.auth0.com/t/validate-username-and-password/48705/1 "2020-08-26T21:41:01Z")

</div>

Hi, I would like to validate username/password. I don’t want the access token or id token.  
Is there any Api that I can use to validate the username/password supplied ?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 27, 2020, 12:11pm UTC](https://community.auth0.com/t/validate-username-and-password/48705/2 "2020-08-27T12:11:31Z")

</div>

Hey there!

Can you share more around your usecase? What do you mean by validating the username and password? We need more context to help you

---

<div class="post-metadata">

**Author:** ![Uday81](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/uday81/32/23822_2.png) [@Uday81](https://community.auth0.com/u/Uday81)\
**Post date:** [August 27, 2020, 4:25pm UTC](https://community.auth0.com/t/validate-username-and-password/48705/3 "2020-08-27T16:25:30Z")

</div>

Sure. I’m working on a User Registration method where I get the Username, Password in the Input.  
If the user not exists then I create a new User in Auth0, generate a new Registration-Id and return the Id.

If the user already exists then I validate the Username/Password and return the Registration-Id.

To check the user exists or not, I’m able to use the Management Api api/v2/users-by-email?email=

This is my use case.

---

<div class="post-metadata">

**Author:** ![Uday81](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/uday81/32/23822_2.png) [@Uday81](https://community.auth0.com/u/Uday81)\
**Post date:** [September 2, 2020, 12:55am UTC](https://community.auth0.com/t/validate-username-and-password/48705/4 "2020-09-02T00:55:01Z")

</div>

Any update on this one ?

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [September 2, 2020, 1:31pm UTC](https://community.auth0.com/t/validate-username-and-password/48705/5 "2020-09-02T13:31:11Z")

</div>

Hi @Uday81

I would recommend using the ID token to return the registration ID. Also, using Auth0’s ULP to both sign in and register, rather than implementing it yourself.

Resource Owner Password Grant is the method to validate the user ID/password combo, but it is no longer recommended in any circumstances.

John
