# Signup with authorize\_redirect?

**URL:** <https://community.auth0.com/t/signup-with-authorize-redirect/60774>\
**Category:** Get Help\
**Created:** [April 8, 2021, 3:24pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774 "2021-04-08T15:24:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rannick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rannick/32/24784_2.png) [@Rannick](https://community.auth0.com/u/Rannick)\
**Post date:** [April 8, 2021, 3:24pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/1 "2021-04-08T15:24:03Z")

</div>

I added auth0 login for my python web app as described in the example with auth0.authorize\_redirect(redirect\_uri=AUTH0\_CALLBACK\_URL, audience=AUTH0\_AUDIENCE)

However, my customer want also a sign-up button directly beside the login button. How do I need to call the signup function with auth0.authorize\_redirect(redirect\_uri=AUTH0\_CALLBACK\_URL, audience=AUTH0\_AUDIENCE)?

Could not find any documentation in the python example.

Thanks 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:** [April 8, 2021, 9:15pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/3 "2021-04-08T21:15:49Z")

</div>

Hi @Rannick,

This FAQ should help you figure it out. Let me know if you have any questions!

[https://community.auth0.com/t/how-do-i-redirect-users-directly-to-the-hosted-signup-page/42520](https://community.auth0.com/t/how-do-i-redirect-users-directly-to-the-hosted-signup-page/42520)

---

<div class="post-metadata">

**Author:** ![Rannick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rannick/32/24784_2.png) [@Rannick](https://community.auth0.com/u/Rannick)\
**Post date:** [April 9, 2021, 4:48pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/4 "2021-04-09T16:48:40Z")

</div>

Hi Dan,

Thank you for the link. I just tested it the following way:

auth0.authorize\_redirect(redirect\_uri=AUTH0\_CALLBACK\_URL, audience=AUTH0\_AUDIENCE, screen\_hint=signup)

However, this does not work. Is there an alternate way for authorise\_redirect?

Best regards,  
Rannick

---

<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:** [April 9, 2021, 4:51pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/5 "2021-04-09T16:51:15Z")

</div>

Can you confirm you are using New Universal Login?

---

<div class="post-metadata">

**Author:** ![Rannick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rannick/32/24784_2.png) [@Rannick](https://community.auth0.com/u/Rannick)\
**Post date:** [April 11, 2021, 7:02am UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/6 "2021-04-11T07:02:40Z")

</div>

I am not quite sure if New Universal Login is used by the auth0 python quickstart example under the following link:

> **[Auth0 Python SDK Quickstarts: Login](https://auth0.com/docs/quickstart/webapp/python/01-login#trigger-authentication)**
>
> This tutorial demonstrates how to add user login to a Python web Application built with the Flask framework and Authlib OAuth library.

Somehow, [Auth0 Python SDK Quickstarts: Login](https://auth0.com/docs/quickstart/webapp/python/01-login) is missing an explanation how to redirect to signup instead to login.

I still have not found any solution so far.

---

<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:** [April 12, 2021, 4:06pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/7 "2021-04-12T16:06:42Z")

</div>

You can configure which login you are using (New or Classic) in the dashboard.

Please check and let me know.

> **[Auth0 Universal Login](https://auth0.com/docs/authenticate/login/auth0-universal-login)**
>
> Describes how Auth0 Universal Login provides you with the means to prove your users' identities with our authorization server.

---

<div class="post-metadata">

**Author:** ![Rannick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rannick/32/24784_2.png) [@Rannick](https://community.auth0.com/u/Rannick)\
**Post date:** [April 12, 2021, 6:08pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/8 "2021-04-12T18:08:12Z")

</div>

Hi Dan,

Thank you for the hint, just looked it up and I can confirm using the New Universal Login.

Do you know how I can use authorize\_redirect to direct new potential customers to sign up.

---

<div class="post-metadata">

**Author:** ![Rannick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rannick/32/24784_2.png) [@Rannick](https://community.auth0.com/u/Rannick)\
**Post date:** [April 13, 2021, 1:20pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/9 "2021-04-13T13:20:28Z")

</div>

just took an additional look on the provided links and started a new test, but everything is still the same, **authorize\_redirect** does not work with **screen\_hint=signup**. Also tested **action=signup** , but this also **does not work**.

In both cases the following message is returned from **authorize\_redirect** :

> {  
> “message”: “name ‘signup’ is not defined”  
> }

Do I miss something here?

---

<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:** [April 13, 2021, 4:03pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/10 "2021-04-13T16:03:42Z")

</div>

This may be an issue with the SDK not passing the param. Let me take a look and I will update here with an answer.

---

<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:** [April 13, 2021, 4:29pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/11 "2021-04-13T16:29:06Z")

</div>

You are trying to pass a signup variable, which doesn’t exist. You need to pass signup as a string.

```auto
screen_hint='signup'

```

---

<div class="post-metadata">

**Author:** ![Rannick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rannick/32/24784_2.png) [@Rannick](https://community.auth0.com/u/Rannick)\
**Post date:** [April 13, 2021, 4:41pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/12 "2021-04-13T16:41:16Z")

</div>

> [@dan.woda](#):
>
> `screen_hint='signup'`

This was the solution! Sry Dan, I think I went into tunnel vision. 🙈

It works now with authorize\_redirect and screen\_hint=‘signup’

---

<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:** [April 13, 2021, 4:45pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/13 "2021-04-13T16:45:14Z")

</div>

No problem! Let us know if you have other 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:** [April 28, 2021, 4:45pm UTC](https://community.auth0.com/t/signup-with-authorize-redirect/60774/14 "2021-04-28T16:45:47Z")

</div>

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