About the sign-up link

Hello.

Please let me know if anyone can help me understand.

I am using Universal Login.
There is a sign in link on the login form, but I would like to show it or not, depending on the web screen.
In other words, I want to dynamically control the sign-in link.
Is there a way to do this?

Hi @nobuaki.tazawa,

Welcome to the Auth0 Community!

It sounds like you are trying to dynamically land on the signup page instead of login page. Yes, this is possible by specifying the screen_hint=signup query parameter in the login request (`/authorize).

See here for more details.

Please let me know if you have any questions.

Thanks,
Rueben

Thanks for the response.

But I guess I asked the wrong question.

What I want to do is control that if you click the login button from page A, there is a sign up link and if you click the login button from page B, there is no sign up link.
In other words, logging in from page A can both sign in and sign up, but logging in from page B can only log in. This is the request. Can we achieve that with a universal login screen?

Hi @nobuaki.tazawa,

It would be possible if you use different database connections for logging in, where one DB has sign-ups enabled, while the other has sign-ups disabled.

This way you can send your users to accordingly by specifying the connection parameter in the login request.

For example:

https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}&
    connection={yourConnectionName}

Thanks,
Rueben

Hi @rueben.tiow

Sorry for the late reply. And thanks for the reply.

Understood. That seems to solve the problem.
Please let me know if you have any more questions.

Very much appreciated.

1 Like

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