# Embedded login on a marketing page

**URL:** <https://community.auth0.com/t/embedded-login-on-a-marketing-page/36750>\
**Category:** Get Help\
**Tags:** embedded-login\
**Created:** [January 23, 2020, 6:15am UTC](https://community.auth0.com/t/embedded-login-on-a-marketing-page/36750 "2020-01-23T06:15:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jyc/32/18654_2.png) [@jyc](https://community.auth0.com/u/jyc)\
**Post date:** [January 23, 2020, 6:15am UTC](https://community.auth0.com/t/embedded-login-on-a-marketing-page/36750/1 "2020-01-23T06:15:09Z")

</div>

Hi everyone,  
I’m planning to have a marketing page with embedded login which should be redirected to my web app when authentication of email and password is successful.

I’m trying to request on /outh/token with [http://auth0.com/oauth/grant-type/password-realm](http://auth0.com/oauth/grant-type/password-realm) as grant type. I’m getting the access token and id\_token successfully. Is this the access\_token I need for redirection to my web app? I’m kind of have no idea what to do next. Can someone enlighten me? Thanks 😃

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [January 23, 2020, 2:52pm UTC](https://community.auth0.com/t/embedded-login-on-a-marketing-page/36750/2 "2020-01-23T14:52:09Z")

</div>

Hi jyc,

A couple of things: Resource Owner Password Grant isn’t recommended, instead we recommend using a redirect flow, so you can do SSO.

A redirect flow will also work nicely to redirect to your web app.

You may or may not need an access token, depending on the architecture of your web app.

John

---

<div class="post-metadata">

**Author:** ![jyc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jyc/32/18654_2.png) [@jyc](https://community.auth0.com/u/jyc)\
**Post date:** [January 24, 2020, 1:20am UTC](https://community.auth0.com/t/embedded-login-on-a-marketing-page/36750/3 "2020-01-24T01:20:46Z")

</div>

Hi John,  
Thanks for replying. I see, just one more question, when you said redirect flow,  
did you mean Authorization Code Flow? Thanks again, John.

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [January 24, 2020, 2:20pm UTC](https://community.auth0.com/t/embedded-login-on-a-marketing-page/36750/4 "2020-01-24T14:20:11Z")

</div>

Yes, Auth Code flow (or one of the other flows, like Auth Code + PKCE…)

John

---

<div class="post-metadata">

**Author:** ![jyc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jyc/32/18654_2.png) [@jyc](https://community.auth0.com/u/jyc)\
**Post date:** [January 27, 2020, 12:58am UTC](https://community.auth0.com/t/embedded-login-on-a-marketing-page/36750/5 "2020-01-27T00:58:00Z")

</div>

Thanks, John. Will try your suggestion today.

---

<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:** [January 27, 2020, 1:53pm UTC](https://community.auth0.com/t/embedded-login-on-a-marketing-page/36750/6 "2020-01-27T13:53:58Z")

</div>

Let us know how it progress!
