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.
Is it possible to dynamically restrict which social options are presented to the user? (perhaps by passing a parameter to the login call in the php sdk)
For example, 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.
…or would I have to create additional applications, enable a single connection in each, and then choose which application to use to launch the login?
Unfortunately, as mentioned in this knowledge article, this feature is not available at this time. You can post on our Feedback page regarding implementing this feature.
Otherwise, creating different applications with specific connection enabled would be a workaround, however, it can be quite tedious.
If you have any other questions, please feel free to leave a reply!
For anybody else looking, I also found this knowledge article that shows you can pass a “connection” parameter to the login call.
This will direct the user straight to the specified social login screen, but isn’t ideal because it skips the universal login page that contains your app name etc… and so can be disorienting.