# How to do implement custom login web form and associate a Auth0 authenticated user session?

**URL:** <https://community.auth0.com/t/how-to-do-implement-custom-login-web-form-and-associate-a-auth0-authenticated-user-session/106873>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [May 14, 2023, 5:43am UTC](https://community.auth0.com/t/how-to-do-implement-custom-login-web-form-and-associate-a-auth0-authenticated-user-session/106873 "2023-05-14T05:43:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![snasim](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@snasim](https://community.auth0.com/u/snasim)\
**Post date:** [May 14, 2023, 5:43am UTC](https://community.auth0.com/t/how-to-do-implement-custom-login-web-form-and-associate-a-auth0-authenticated-user-session/106873/1 "2023-05-14T05:43:12Z")

</div>

Hi,

I have to use a microservice/headless architecture approach and all services are supposed to be exposed as REST.Ex - login/Logout.  
We will be creating a custom login form.

What I found is -

1. I can use Resource Owner password flow ( /token endpoint) and authenticate user with my custom login form.I am able to do that.But then there is no session context created at Auth0 side with this flow.

2. Then I checked authorization code flow, which will create the session with AUTH0  
But it seems it is coupled tightly with AUTH0 login redirect form which takes care of session cookie creation and actual login.  
\*\* And then after that i can use that authcode to get the access tokens.

So what I need is, a user authenctication associated with Auth0 session using a custom login form.

Any pointers us really appreciated.I checked auth0 docs and cant find any thing for above.

Thanks  
Shamama

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/phi1ipp/32/40616_2.png) [@phi1ipp](https://community.auth0.com/u/phi1ipp)\
**Post date:** [May 15, 2023, 1:44am UTC](https://community.auth0.com/t/how-to-do-implement-custom-login-web-form-and-associate-a-auth0-authenticated-user-session/106873/2 "2023-05-15T01:44:28Z")

</div>

Auth0 login screen is customizable, depending on your requirements. So you might be able to reach the required level of functionality

---

<div class="post-metadata">

**Author:** ![snasim](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@snasim](https://community.auth0.com/u/snasim)\
**Post date:** [May 15, 2023, 7:11am UTC](https://community.auth0.com/t/how-to-do-implement-custom-login-web-form-and-associate-a-auth0-authenticated-user-session/106873/3 "2023-05-15T07:11:23Z")

</div>

Thank you.I will review that bit .

---

<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:** [May 15, 2023, 9:07am UTC](https://community.auth0.com/t/how-to-do-implement-custom-login-web-form-and-associate-a-auth0-authenticated-user-session/106873/4 "2023-05-15T09:07:29Z")

</div>

Once you explore the options let us know your questions!

---

<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:** [May 29, 2023, 9:07am UTC](https://community.auth0.com/t/how-to-do-implement-custom-login-web-form-and-associate-a-auth0-authenticated-user-session/106873/5 "2023-05-29T09:07:40Z")

</div>

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