Feature Request: Dynamic control over which connection options are displayed in new universal login

Feature: Dynamic control over which connection options are displayed in new universal login

Description: I’m using new universal login with the php sdk. I have several social connections enabled in my application and currently they are all shown together when viewing the login page.

I would like to be able to dynamically restrict which social options are presented to the user, perhaps by passing a parameter to the login call in the php sdk (similar to the ‘connection’ parameter that directs straight to the appropriate login but does not show the initial universal login page).

Use-case: When launching the login in one instance I’d like all the connections to be available, but when launching in another instance I’d only like one specified connection to be shown. This is to direct some users to specific login option without having to build multiple applications.

Hi there!

Welcome to the Auth0 Community!

Thank you for creating this feedback card! Make sure to upvote it so that it gets as many votes and attract as many community members as possible!

In terms of forcing the user to use a specific connection, you can append the /authorize request with the connection parameter;

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

Thanks
Dawid