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
, .
, FormsAuthenticationModule EndRequest. , . , 401 ().
UrlAuthorizationModule - , ( ), , , , , 401.
, FormsAuthenticationModule
ASP.NET, .
, ( Erv ), , application EndRequest
, - RoleManagerModule
, UrlAuthorizationModule (.. , Passport/Live, Windows ..) ( , ), - , CheckUrlAccessForPrinciple, , false, 401, ASP.NET .
EndRequest, FormsAuthenticationModule, , , , auth web.config.
Source: https://habr.com/ru/post/1708293/More articles:как создать поле, похожее на stackoverflow, нажмите, чтобы отклонить - jqueryHow to access a selection of a subset of UITableView? - objective-cHow can I keep track of who contributed a comment to a TFS work item - tfsTwo dates during the year from each other - c #What would you call the "helper method"? - oopИспользование точек с запятой в выражениях Oracle SQL - performanceGet a list of selected items in javascript - javascriptBacklight J2ME - mobileHow long does it take to become proficient in Oracle given SQL Server - oracleRandom Java VM crashes in ConcurrentGCThread - javaAll Articles