netcoreapp2.0 preview2. 身份配置

塞尔吉奥

cookie 配置有问题。在 chrome 中一切正常,但 Postman 存在一些问题。它没有定义所有的 cookie。(拦截器打开)。

这是我的身份配置

ConfigureServices()
{
    services.AddAuthentication(auth =>
    {
        auth.DefaultChallengeScheme =CookieAuthenticationDefaults.AuthenticationScheme;
        auth.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
    }).AddCookieAuthentication(auth =>
    {
        auth.LoginPath = "/account/login";
        auth.LogoutPath = "/account/logout";
    }
}

Configure()
{
     app.UseAuthentication();
}

用netcoreapp1.1和这个配置

Configure()
{
     app.UseIdentity();
}
ConfigureServices()
{
     services.Configure<IdentityOptions>(options =>
     {
        options.Cookies.ApplicationCookie.LoginPath = new PathString("/account/login");
        options.Cookies.ApplicationCookie.LogoutPath = new PathString("/account/logout");
     }
}

一切正常

有什么建议么?

塞尔吉奥

问题出在 Postman(仅限桌面应用程序)https://github.com/postmanlabs/postman-app-support/issues/3146

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

UnrealEngine 4.26.0 (Preview2) 中的 MultiSphereTraceByChannel 问题

选择dotnet CLI使用的SDK版本(例如,preview3与preview2)

IdentityServer4 作为带有 .Net Core WSFederation preview2 的 WSFederation-client

配置Yii2中的多个用户身份

Spring Boot 2 + OAuth2:配置令牌的身份验证代码交换

在Spring OAuth2中配置安全性:身份验证请求的访问被拒绝

使用Git CLI配置Git 2因子身份验证令牌

Spring Security中的Microsoft Graph OAuth2身份验证配置-错误AADSTS90014

配置ASP.Net Core以针对Thinktecture V2使用OIDC进行身份验证

在.Net Core 2.x MVC应用程序中配置Windows AD身份验证

如何为基本身份验证配置Web Api 2和IIS?

用于SendGrid的WSO2身份服务器OTP电子邮件配置

使用自定义设置配置Azure b2C身份验证

wso2:如何在每个租户的基础上配置基于ADFS的身份验证

WSO2身份服务器5.0-预先配置的服务提供商

使用 NativeScript 提供的 Enterprise Auth 项目模板配置 OAuth 2 身份验证

如何使用 AZURE AD 为 Apache Kafka 集群配置 OAuth2 身份验证

WSO2 身份服务器 (IS) 未在默认配置文件中显示声明

如何为系统范围的两因素身份验证配置 U2F 密钥(例如 YubiKey)?

配置 Azure 静态 Web 应用以使用 Azure AD B2C 进行身份验证

Vue.js 2和auth0身份验证产生“ nonce”

缺少/ api / v2 / users / {id}的身份验证Auth0

我希望输出像[[0,0,0,0,],[0,1,0,0],[0,2,0,0],[0,3,0,0]]

登录angular2之后auth0回调未设置配置文件日期

Angular 2 - Auth0 用户配置文件,未定义

0 < 2 = ...假?

我们如何在O Developer Preview 2中配置自动填充服务?

尝试使用B2C身份验证保护ASPNET Core Web API时遇到错误:无法检索openid配置

使用 Angular4 和 Angularfire2 (v4) 在 Firebase 中获取用户身份验证配置文件信息