Hello everyone,
i want to put a button that redirect to an idp in other application than keycloak.
I really need it to have some compliance with this provider.
Is there a way to do it ?
I hope it was clear.
Thanks
Hello everyone,
i want to put a button that redirect to an idp in other application than keycloak.
I really need it to have some compliance with this provider.
Is there a way to do it ?
I hope it was clear.
Thanks
I’m not exactly sure what you’re asking, but you can send the user directly to a specific IdP by passing your configured IdP alias as the kc_idp_hint
parameter. From the docs:
With the
kc_idp_hint
query parameter, the client can override the default identity provider if you configure one for theIdentity Provider Redirector
authenticator. The client can disable the automatic redirecting by setting thekc_idp_hint
query parameter to an empty value.
Hi,
thanks for your reply. I have find a way.
Behind my button i will have this link
https://myiam.org/auth/realms/external/protocol/openid-connect/auth?scope=openid&response_type=code&client_id=myclientid&redirect_uri=myredirecturi&kc_idp_hint=myIDP
At first, i thinked that i need to use the javascript adapter of keycloak with createLoginUrl function but I failed to use it properly. Also, i need createRegistrationUrl but i don’t think i can use a subterfuge as above.