Customize connection in organization based on the application's client ID

Here’s my current setup:

  • I have 2 Applications, 1 for admin and 1 for customer/client where only team members of organizations can access the application
  • I have 2 roles, admin and customer
  • I have 2 or more organizations

What I want to do?

  • For the admin application, I want the connection to be only Database Connection and for the Customer/client application I want to have Database and Criipto Connection. I want this configuration to apply in every organization I have.

How can I do this?

Hi @jeeann,

Thanks for reaching out to the Auth0 Community!

I understand you would like to specify different Connections for your Applications.

To accomplish this, there is a toggle for each of your Connections in the Applications settings to allow/disallow them to authenticate.

In other words, on your Auth0 Dashboard > Applications > Applications there is a Connections tab that lets you enable/disable your database connections.

For example:

Then for each Organization, you will have to turn on these Connections:

And depending on whether you enable/disable Membership On Authentication, you may have to add those users as Organization Members manually.

Please let me know if there is anything else I can do to help!

Thanks,
Rueben

Hi @rueben.tiow ,

Thank you for responding. I’ve tried the solution you provided.
These are my application:

  1. Admin

  2. Client


    Then this is my organization’s connections:

    Then this is the organization’s login, I was only expecting a username and password input in the admin application since the only enabled connection is a database connection.

Is there something that I’m missing or misunderstood?

Hi @jeeann,

Thank you for your reply.

The setup snapshots you shared look correct. :+1:

First, if you need to login into different applications with an Organization, you will need to specify the corresponding client_id and redirect_uri in the request:

https://YOUR_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    scope={scope}&
    state={state}&
    organization= YOUR_ORG_ID

And if you need to modify the text on the login page, you can do so by Customizing the New Universal Login Text Prompts.

Is there anything else I can help you with?

Thanks,
Rueben

Hi @rueben.tiow ,
One last thing, is there a way to hide the Criipto/NemID button in the organization login without having to remove the Criiptio NemID connection in the organization?

Thanks,
Jee Ann

Hi @jeeann,

Thank you for your response.

There is only one option is to specify the Connection Name in the /authorize request to “hide” all other connections.

https://YOUR_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    scope={scope}&
    state={state}&
    organization= YOUR_ORG_ID&
    connection=CONNECTION_NAME

Apart from this approach, there isn’t another way to “hide” connections unless they are turned off.

I hope this helps!

Please let me know if there’s anything else I can do to help.

Thanks,
Rueben

Hi @rueben.tiow ,
I’ll give this a try, thank you so much for your help.

Thanks,
Jee Ann

1 Like

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