Tag: oauth2

OpenIdConnectAuthenticationHandler:message.State为null或为空

我正在使用UseOpenIdConnectAuthentication中间件为ASP.Net Core应用程序对Dells云访问管理器令牌提供程序进行身份validation(设置为提供OpenId / OAuth2身份validation)。 以下是代码: app.UseCookieAuthentication(new CookieAuthenticationOptions { AutomaticAuthenticate = true, AutomaticChallenge = true, AuthenticationScheme = “ClientCookie”, CookieName = CookieAuthenticationDefaults.CookiePrefix + “ClientCookie”, ExpireTimeSpan = TimeSpan.FromMinutes(5), LoginPath = new PathString(“/signin”), LogoutPath = new PathString(“/signout”) }); app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions { RequireHttpsMetadata = false, SaveTokens = true, ClientId = “XYZClient_Id”, ClientSecret = “XYZ_ClientSecret”, ResponseType = OpenIdConnectResponseType.Code, PostLogoutRedirectUri = “https://example.com”, […]