且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET OWIN WebForms的需要授权的所有页面

更新时间:2023-12-01 15:35:10

添加以下过滤器为默认App_Start / FilterConfig.cs文件(在RegisterGlobalFilters法)的伎俩:

Adding the following filter to the default App_Start/FilterConfig.cs file (in the RegisterGlobalFilters method) did the trick:

filters.Add(new AuthorizeAttribute());