2

I have a web app which runs under service.domain.de. For authentication in this app I use Azure AD B2C. In the azure security cookie is for the domain service.domain.de . What can I do to get the security cookie for the domain .domain.de? So with the domain .domain.de the cookie is for the domain.de and all subdomains. The service I wrote in ASP.Net and used Microsoft.Owin.Security library (OpenId).

4

1 回答 1

1

添加 CookieAuthentication 时,您可以通过 CookieAuthenticationOptions 的CookieDomain控制域,如下所示:

app.UseCookieAuthentication(new CookieAuthenticationOptions {
  CookieDomain = "domain.de"
});
于 2017-05-25T17:44:38.537 回答