# Need to validate the user for authorization code

**URL:** <https://community.auth0.com/t/need-to-validate-the-user-for-authorization-code/98342>\
**Category:** Get Help\
**Tags:** management-api\
**Created:** [January 17, 2023, 2:21pm UTC](https://community.auth0.com/t/need-to-validate-the-user-for-authorization-code/98342 "2023-01-17T14:21:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjishant10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tjishant10/32/42480_2.png) [@tjishant10](https://community.auth0.com/u/tjishant10)\
**Post date:** [January 17, 2023, 2:21pm UTC](https://community.auth0.com/t/need-to-validate-the-user-for-authorization-code/98342/1 "2023-01-17T14:21:53Z")

</div>

Can we validate the user by providing username and password (not on login page) in the process of getting authorization code from authorization server?  
note - I am integrating auth0 with Cypress but the grant type set as “Authorization code”

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 17, 2023, 9:33pm UTC](https://community.auth0.com/t/need-to-validate-the-user-for-authorization-code/98342/3 "2023-01-17T21:33:49Z")

</div>

Hi @tjishant10,

Welcome to the Auth0 Community!

> [@tjishant10](#):
>
> Can we validate the user by providing username and password (not on login page) in the process of getting authorization code from authorization server?

Unfortunately, no, and this is not recommended. Instead, you must go through the authorization code flow to request an access token then you can validate the access token granted to the user.

I recommend checking out our [Add Login Using the Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) and [Validate Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/validate-access-tokens) for more information.

Please let me know if you have any additional questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 31, 2023, 9:34pm UTC](https://community.auth0.com/t/need-to-validate-the-user-for-authorization-code/98342/4 "2023-01-31T21:34:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
