가상 디렉터리에 Owin Identity 응용 프로그램과 다른 응용 프로그램이 설정되어 있습니다. 가상 응용 프로그램은 전통적인 양식 인증을 사용하여 설정되며 두 Web.config는 모두 <machineKey>
으로 설정됩니다. ID 앱을 사용하여 로그인 할 수 있으며 결과 쿠키를 볼 수 있습니다. 그러나 가상 응용 프로그램에 액세스하려고하면 인증되지 않았다고 말합니다. 폼 인증에서 ASP.Net ID 2 쿠키 사용
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/login.aspx"),
Provider = new CookieAuthenticationProvider
{
// Enables the application to validate the security stamp when the user logs in.
// This is a security feature which is used when you change a password or add an external login to your account.
OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
validateInterval: TimeSpan.FromMinutes(30),
regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
}
});
그리고 가상 응용 프로그램에서
, 내가로 설정 권한은 다음과 같습니다 : 가상 응용 프로그램을 얻을<authorization>
<deny users="?" />
</authorization>
모든 포인터를 식별 응용 프로그램에서
, 나는 다음과 같은 설정을 가지고 Identity에 의해 설정된 쿠키를 인식합니까?
Badri,이 솔루션은 완벽하게 작동합니다. 당신의 대답에 대해 정말 고마워요. – ern