当唯一选项是第三方时,是否可以跳过登录页面?

时间:2016-03-24 16:43:01

标签: identityserver3

我的情况是,一组用户只能通过第三方登录进行身份验证。是否可以传递一个额外的参数,该参数会跳过登录页面并自动将用户重定向到第三方登录页面,并且不必按第三方按钮?

1 个答案:

答案 0 :(得分:2)

有几种方法可以影响登录工作流程。

客户端应用程序可以包含对身份服务器的提示,使用哪个外部提供程序 - 这是通过https://select2.github.io/examples.html 参数(idp:name_of_ext_idp)完成的。

https://identityserver.github.io/Documentation/docsv2/endpoints/authorization.html

您还可以为每个客户端静态配置ext提供程序(将acr_values设置为false,将EnableLocalLogin设置为ext。提供程序的名称。)

https://identityserver.github.io/Documentation/docsv2/configuration/clients.html

此外,您还可以在用户服务上处理IdentityProviderRestrictions方法,并在PreAuthenticateAsync

上动态设置Idp属性

https://identityserver.github.io/Documentation/docsv2/advanced/userService.html