This documentation is archived and is not being maintained.

HttpContext.SkipAuthorization Property

Gets or sets a value that specifies whether the UrlAuthorizationModule object should skip the authorization check for the current request.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public bool SkipAuthorization { get; set; }
/** @property */
public boolean get_SkipAuthorization ()

/** @property */
public void set_SkipAuthorization (boolean value)

public function get SkipAuthorization () : boolean

public function set SkipAuthorization (value : boolean)

Not applicable.

Property Value

true if UrlAuthorizationModule should skip the authorization check; otherwise, false. The default is false.

The SkipAuthorization property is intended for advanced use by authentication modules that need to redirect to a page that allows anonymous connections. The Forms authentication module and Passport authentication module both set SkipAuthorization when redirecting to a configured logon page. Setting SkipAuthorization requires the ControlPrincipal flag to be set.

  • SecurityPermission  for setting the SkipAuthorization property. Demand value: Demand. Permission value: ControlPrincipal

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0