# Can I login passing mail and password as a parameters?

**URL:** <https://community.auth0.com/t/can-i-login-passing-mail-and-password-as-a-parameters/97377>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [January 3, 2023, 9:38am UTC](https://community.auth0.com/t/can-i-login-passing-mail-and-password-as-a-parameters/97377 "2023-01-03T09:38:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Totodile](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/totodile/32/12714_2.png) [@Totodile](https://community.auth0.com/u/Totodile)\
**Post date:** [January 3, 2023, 9:38am UTC](https://community.auth0.com/t/can-i-login-passing-mail-and-password-as-a-parameters/97377/1 "2023-01-03T09:38:59Z")

</div>

Hello!

I’m using auth0 library for angular and I’m trying to implement a direct login if I pass a parameter.  
I’ve created an endpoint in my API connected to A0 API and I tested it on SWAGGER and it works, it the A0 user exists and de mail and password are correct, it returns me the Acess\_Token for the user.

But what im trying to do is to implement that logic into the angular and frontend.  
What im trying is , if a user sends as a parameter his login and password, check that endpoint and redirect to Home page with the access\_token, but I dont know how to do it.

I’ve tried many options but always end in the login universal screen and with the LoginWithRedirect().

It is possible to do it? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 9, 2023, 9:47pm UTC](https://community.auth0.com/t/can-i-login-passing-mail-and-password-as-a-parameters/97377/3 "2023-01-09T21:47:03Z")

</div>

HI @Totodile,

You are looking for the [Resource Owner Password Grant](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow).

This grant type is typically not recommended and is not available in the Auth0 Angular SDK.

If you search that name you will find more info on why it is not recommended as well as how to implement it.

---

<div class="post-metadata">

**Author:** ![Totodile](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/totodile/32/12714_2.png) [@Totodile](https://community.auth0.com/u/Totodile)\
**Post date:** [January 10, 2023, 7:31am UTC](https://community.auth0.com/t/can-i-login-passing-mail-and-password-as-a-parameters/97377/4 "2023-01-10T07:31:58Z")

</div>

Thank you @dan.woda for your answer!

---

<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 24, 2023, 7:32am UTC](https://community.auth0.com/t/can-i-login-passing-mail-and-password-as-a-parameters/97377/5 "2023-01-24T07:32:20Z")

</div>

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