AuthorizeAttribute.Extended:这提供了一个库,将ASP.NET MVC AuthorizeAttribute类上的403错误与401错误分开

时间:2021-05-19 17:10:18
【文件属性】:
文件名称:AuthorizeAttribute.Extended:这提供了一个库,将ASP.NET MVC AuthorizeAttribute类上的403错误与401错误分开
文件大小:976KB
文件格式:ZIP
更新时间:2021-05-19 17:10:18
C# AuthorizeAttribute扩展 AuthorizeAttribute Extended基于身份验证和/或授权结果将403(禁止)错误代码与401(未授权)错误代码分开,而ASP.NET的AuthorizeAttribute类仅返回401(未授权)错误代码。 包装状态 AuthorizeAttribute扩展 入门 AuthorizeAttribute Extended的工作原理与上现有的AuthorizeAttribute类完全相同。 添加/更新FilterConfig.cs App_Start\FilterConfig.cs应包含AuthorizeAttribute类。 必须using别名来避免System.Web.Mvc.AuthorizeAttribute类的混淆。 using AuthorizeAttribute = Aliencube . AuthorizeAtt
【文件预览】:
AuthorizeAttribute.Extended-master
----SourceCodes()
--------02_Apps()
--------build.bat(1KB)
--------AuthorizeAttribute.Extended.sln(4KB)
--------99_Tests()
--------tools()
--------AuthorizeAttribute.Extended.sln.DotSettings(1KB)
--------.nuget()
----LICENSE(1KB)
----README.md(4KB)
----.gitignore(3KB)
----Documents()
--------Properties()

网友评论