Does FormsAuthenticationModule, ...?


FormsAuthenticationModule is used to track user and role information using an encrypted cookie.

But this module also contains code that actually determines whether the user requesting the webpage has a form authentication ticket, and if not, redirects the user to the login page or actually the UrlAuthorizationModule that tells FormsAuthenticationModule to redirect the unauthorized / unauthorized user to the login page


thanks

+3
source share
2 answers

, .

, FormsAuthenticationModule EndRequest. , . , 401 ().

UrlAuthorizationModule - , ( ), , , , , 401.

, .

+4

, FormsAuthenticationModule

ASP.NET, .

, ( Erv ), , application EndRequest

, - RoleManagerModule

, UrlAuthorizationModule (.. , Passport/Live, Windows ..) ( , ), - , CheckUrlAccessForPrinciple, , false, 401, ASP.NET .

EndRequest, FormsAuthenticationModule, , , , auth web.config.

+3

Source: https://habr.com/ru/post/1708293/


All Articles