Unrelated question, when using Social Sign-in. Is ...
# ory-network
q
Unrelated question, when using Social Sign-in. Is it possible to craft a URL / send some Authorization Request that would by default "force" user to login with some specific Social Sign-in? Or hide one of the buttons for internal users?
f
You can do that if you build your own login UI and parametrize the options accordingly. The APIs will return all available options and the pre-built account experience will render them, there’s no way to limit options currently.
👍 1
q
I see. Is there a way to auto-select one of the identity providers with some parameter? So we can skip the user clicking the button and will just start the social sign-in with one of the providers? Or would we need custom UI for this as well?
f
i'm not sure if i fully follow
ah i think i get it now
okay, so the account experience doesn't have a parameter for this. ultimately this is a multi-step process where first the login flow is initiated, and then you need a CSRF token to perform subsequent actions - that'll probably get in the way when hacking it. if the scenario is that you always want to send the user directly to the Social Login provider, you might succeed by using json/API flows instead of browser/redirect flows, and build very minimal "UI" that does nothing but initializing and then passing on the user to the SSO provider
👍 1
q
@fast-lunch-54279 I see. Thank you for the information 🙏