【发布时间】:2019-09-26 15:32:11
【问题描述】:
我有一个连接到 Azure Active Directory 的 ASP.Net Core 应用程序。登录效果很好,但在退出时我希望它立即发生,而无需通过 Azure AD 中的“选择帐户”屏幕。
我已经使用了示例应用程序(https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2)并修改了启动方法:
services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =>
{
options.Authority = options.Authority + "/v2.0/";
options.SaveTokens = true;
}
我读到 SaveTokens 应该导致在注销时设置 id_token_hint(假设这将绕过注销屏幕),但这没有发生。
如何让应用程序立即注销而不进入 Azure 的注销屏幕?
【问题讨论】:
-
您在此存储库中使用了哪个特定示例?
-
@TiagoBrenck 我使用了 aspnetcore2-2 分支(它有一个项目)
标签: c# azure-active-directory openid-connect