Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keycloak: How to auto redirect Keycloak user to OKTA SSO page instead of clicking on button?

I have followed the guide https://ultimatesecurity.pro/post/okta-saml/ , to configure OKTA Saml with keycloak. After this configuration, I see Okta/saml login button on login page, clicking on which, the user is redirected to Okta login/SSO.

enter image description here

Now, is there a way to avoid clicking on this button everytime such that when the keycloak login page appears, user is auto redirected to Okta SSO automatically instead of shown keycloak login form with okta redirect button?

If not, is it possible to enter okta username password within the keycloak form fields and keycloak have it validated internally from Okta?

This requirement is because the customer is using only Okta as IDP and does not have any other like LDAP etc and clicking on a button seems overhead.

like image 709
tryingToLearn Avatar asked Aug 20 '18 06:08

tryingToLearn


People also ask

How do I redirect an Okta login page?

Sign in a user Test your integration by starting your server and signing in a user. Open a browser and navigate to http://localhost:8080 . You are redirected to Okta to sign in. When you return, it should display your user information.

Does Okta use Keycloak?

Keycloak and Okta need to be configured in parallel. First, you need to add an OpenID Connect Identity Provider in Keycloak. Then you to add an OpenID Connect application in Okta using the Keycloak Redirect URI value.

Is Keycloak a IDP?

Keycloak is an IDP. Keycloak can be configured to delegate authentication to one or more IDPs. Social login via Facebook or Google+ is an example of identity provider federation. You can also hook Keycloak to delegate authentication to any other OpenID Connect or SAML 2.0 IDP.


1 Answers

The solution is pretty simple.

1. Go to Realm -> Configure -> Authentication

enter image description here

2. Go to Flows -> Browser-> Identity Provider Redirecter -> Actions -> Config

enter image description here

3. Enter the saml / okta identity provider name that you have created for your realm

enter image description here

(as you can see in my case it was saml-okta-41)

enter image description here

like image 95
tryingToLearn Avatar answered Oct 02 '22 22:10

tryingToLearn