gpt4 book ai didi

openid - 跳过 IdentityServer3 登录屏幕

转载 作者:行者123 更新时间:2023-12-03 14:44:27 24 4
gpt4 key购买 nike

我们已将客户端应用程序配置为通过 OpenID Connect 协议(protocol)使用 IdentityServer3 身份验证(它是使用 OWIN 中间件支持 OIDC 的 ASP.NET MVC 应用程序)。

IdentityServer3 本身被配置为使用本地登录和外部登录(例如 Azure AD)。

在常规流程中,一旦 App 需要对用户进行身份验证,它会将他重定向到 IdentityServer3 登录屏幕——这很好。但在某些情况下,在每个请求的基础上,我想通过某种方式让 IdentityServer3 知道用户想要立即使用特定的外部身份提供者登录来绕过登录屏幕。

那有可能吗?

image

最佳答案

刚刚在 IdentityServer3's Authorization/Authentication Endpoint documentation 中找到了解决方案!

acr_values (optional) allows to pass additional authentication related information to the user service - there are also values with special meaning: idp:name_of_idp bypasses the login/home realm screen and forwards the user directly to the selected identity provider (if allowed per client configuration) tenant:name_of_tenant can be used to pass a tenant name to the user service



如何使用 OWIN OpenID Connect 中间件传递附加参数: https://katanaproject.codeplex.com/workitem/325

这是授权请求的示例:

sample request

关于openid - 跳过 IdentityServer3 登录屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29943977/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com