# How to send username and password with loginAsync function with winform application

**URL:** <https://community.auth0.com/t/how-to-send-username-and-password-with-loginasync-function-with-winform-application/96133>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [December 9, 2022, 5:10pm UTC](https://community.auth0.com/t/how-to-send-username-and-password-with-loginasync-function-with-winform-application/96133 "2022-12-09T17:10:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sureshkumargce.kumar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sureshkumargce.kumar/32/37366_2.png) [@sureshkumargce.kumar](https://community.auth0.com/u/sureshkumargce.kumar)\
**Post date:** [December 9, 2022, 5:10pm UTC](https://community.auth0.com/t/how-to-send-username-and-password-with-loginasync-function-with-winform-application/96133/1 "2022-12-09T17:10:30Z")

</div>

Hi ,

We are using winform application to create login mechanism with our native app. here during loginAsync function it launches the login screen and asks for username and password. Instead , I don’t want to launch this login screen , just need to give username and password in code itself , and on successful login , I need to get access toke. Is it possible ot set username and password directly through code ?

Thanks .

---

<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:** [December 12, 2022, 3:47pm UTC](https://community.auth0.com/t/how-to-send-username-and-password-with-loginasync-function-with-winform-application/96133/3 "2022-12-12T15:47:32Z")

</div>

Hi @sureshkumargce.kumar,

You are looking for the [Resource Owner Password Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow). Let me know if you have any questions about it.

---

<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:** [December 26, 2022, 3:48pm UTC](https://community.auth0.com/t/how-to-send-username-and-password-with-loginasync-function-with-winform-application/96133/4 "2022-12-26T15:48:18Z")

</div>

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