Keycloak: How to auto redirect Keycloak user to OK

2019-05-20 14:38发布

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.

1条回答
疯言疯语
2楼-- · 2019-05-20 15:37

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

查看更多
登录 后发表回答