We are using Hydra with OIDC for our frontend and ...
# general
s
We are using Hydra with OIDC for our frontend and enabled social auth with Github and others. Does anyone know whether it's possible to create an oauth2 authorization request with a 'provider hint' or something similar? Ideally we would be able to trigger login with github or google based on a query parameter. I'm aware of
token_hint
,
prompt
and others in OIDC but couldn't find anything were looking for.
l
we are doing this by adding a custom query string parameter to the authorization URL we then parse the URL and check for the existence of that parameter in our UI service and initiate the selected provider login (assuming we don't already bypass the login because of pre-existing sessions)
👍 1
s
Yeah, sounds similar to another implementation I did previously (when running the ory services in-house). But, in this case we are using Ory Cloud without a custom login UI 😕
l
ah... good luck then 🙂