【发布时间】:2020-12-29 23:33:21
【问题描述】:
我想知道,是否有可能在domainA.com 和domainB.com 之间共享 OWIN 身份验证 Cookie,它们都连接到同一个 IIS 应用程序。我想要实现的是,当用户登录domainA.com 并转到domainB.com 时,他也将在那里登录。我可以在没有 SSO 逻辑的情况下做到这一点吗?
现在我已经配置了 OWIN cookie 身份验证:
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = "AppCookieName",
AuthenticationMode = Microsoft.Owin.Security.AuthenticationMode.Active,
LoginPath = new PathString("/PathToLogIn")
});
AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.NameIdentifier;
}
}
【问题讨论】:
标签: c# asp.net-mvc authentication iis cookies