通过


HttpContext.SkipAuthorization 属性

定义

获取或设置一个值,该值指定对象是否 UrlAuthorizationModule 应跳过当前请求的授权检查。

public:
 property bool SkipAuthorization { bool get(); void set(bool value); };
public bool SkipAuthorization { get; set; }
member this.SkipAuthorization : bool with get, set
Public Property SkipAuthorization As Boolean

属性值

如果 应跳过授权检查,则为 ;否则为 >。 默认值为 false

注解

SkipAuthorization 属性适用于需要重定向到允许匿名连接的页面的身份验证模块的高级使用。 重定向到配置的登录页时,窗体身份验证模块和 Passport 身份验证模块都已设置 SkipAuthorization 。 设置 SkipAuthorization 要求 ControlPrincipal 设置标志。 有关标志的信息 ControlPrincipal ,请参阅 SecurityPermissionFlag

适用于