我应该为 OpenIdConnectOptions.SignOutScheme 设置什么?

问题描述 投票:0回答:0

我正在使用 .NET 6 和 Identity Server 4。

我应该设置什么

OpenIdConnectOptions.SignOutScheme

这就是我的

Startup.ConfigureServices()

       .AddOpenIdConnect("oidc", "OpenIdConnect", options =>
        {
            options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme; // "idsrv.external"
            options.SignOutScheme = IdentityServerConstants.SignoutScheme; // "idsrv"
            options.Authority = "https://saas.oktapreview.com";
            options.ClientId = "someId";
            options.ClientSecret = "someSecret";
            options.ResponseType = "code";
            options.Events = new MriOpenIdConnectEvents();
       }

我选择

IdentityServerConstants.SignoutScheme
纯粹是因为它的名称中有“signout”。

但是您可以使用与

SignInScheme
相同的值吗?

这个值如何影响 OIDC?

c# .net-6.0 identityserver4 identity claims-based-identity
© www.soinside.com 2019 - 2024. All rights reserved.