Name

SkipAuthorization

Synopsis

Boolean = Context.SkipAuthorization
Context.SkipAuthentication = Boolean

Set s or returns a flag indicating whether the URLAuthorization module will skip the authorization check. The default is False.

Parameters

Boolean

A Boolean variable returning or setting the flag regarding authorization checks.

Example

The following example retrieves the status of the SkipAuthorization property and displays it in the Message label control:

Sub Page_Load(  )
   Message.Text = "SkipAuthorization? " _ 
      & Context.SkipAuthorization
End Sub

Notes

To set this value, the ControlPrincipal Flag must be set in the Flags property of the SecurityPermission object. This property is used internally by the Forms and Passport authentication modules.

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.