Start OIDC flow through FusionAuth API
-
I'm wondering if there is a way to start an OIDC login programmatically using the FusionAuth API? I have the OIDC identity provider configured in FusionAuth, see the 'login with' button which works, but would like to simulate a click on that button through a FusionAuth API call. The company that hosts the 'login with' IDP would like to initiate the 'login with' from their side providing a single click login for their users as opposed to a two click approach.
-
Hiya,
I think this is what you are looking for:
So you aren't so much starting the OIDC flow as finishing it. This would be if you were building your own login form.
Another alternative that I think does what you want is to provide an
idp_hint
parameter, which will direct the user right to the correct login form, without requiring an additional click: https://fusionauth.io/docs/v1/tech/identity-providers/#hints On a re-read of your question, I think that's what you're looking for.If I misunderstand your question, please let me know.