# Embed Login Page

**URL:** <https://community.auth0.com/t/embed-login-page/93635>\
**Category:** Get Help\
**Created:** [November 3, 2022, 1:29pm UTC](https://community.auth0.com/t/embed-login-page/93635 "2022-11-03T13:29:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jemariap](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jemariap/32/33711_2.png) [@jemariap](https://community.auth0.com/u/jemariap)\
**Post date:** [November 3, 2022, 1:29pm UTC](https://community.auth0.com/t/embed-login-page/93635/1 "2022-11-03T13:29:27Z")

</div>

Hi Team,  
We are trying to Embed custom login page, in our Django Application,  
similar to Auth0.js webAuth.login() method in python.

Currently Django api call is hitting the login url and routing to Universal Login,  
def login(request):  
return oauth.auth0. **authorize\_redirect** (  
request, request.build\_absolute\_uri(reverse(“callback”))  
)  
Insetad, we need Embed Login page, which can authenticate the user credential via  
oauth.auth0.login() something similar ,

---

<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:** [November 7, 2022, 6:49pm UTC](https://community.auth0.com/t/embed-login-page/93635/3 "2022-11-07T18:49:31Z")

</div>

Hi @jemariap,

It sounds like you may be looking for the [Resource Owner Password Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow).

It looks like the python Authlib supports it. Here is the doc for it: [OAuth 2 Session — Authlib 1.2.0 documentation](https://docs.authlib.org/en/latest/client/oauth2.html?highlight=password#oauth2session-for-password)

_This flow is typically not recommend by Auth0, and you should read through all the docs to understand the potential risks._

---

<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:** [November 21, 2022, 6:50pm UTC](https://community.auth0.com/t/embed-login-page/93635/4 "2022-11-21T18:50:25Z")

</div>

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