设置 默认Identity Provider 后,
keycloak将不再展示keycloak的登录页面,
而是直接转向Default Identity Provider。
说明:如果配置的Default Identity Provider不存在,将会继续展示keycloak的登录页面。
设置方法:
以管理员身份登录keycloak,
选择左侧菜单Authentication,
选择Browser Flow,
进一步选择Identity Provider Redirector,
点击右侧【Actions】---【Config】。
在config页面,输入已经接入的Identity Provider的名称,如github,点击【save】即完成配置。
如果不配置Default Identity Provider,也可以同通过传参的方式来指定使用哪个Identity Provider进行认证,
参数名称:kc_idp_hint
值:接入的Identity Provider的名称。
如:转向keycloak认证地址?kc_idp_hint=facebook
The kc_idp_hint query parameter also allows the client to override the default identity provider if one is configured for the Identity Provider Redirector authenticator. The client can also disable the automatic redirecting by setting the kc_idp_hint query parameter to an empty value.
更多信息参考:
http://www.keycloak.org/docs/latest/server_admin/index.html#default_identity_provider