C# Class Candor.Security.Web.CandorAuthenticationModule

Authenticates the current request from custom cookies.
Inheritance: IHttpModule
Show file Open project: michael-lang/candor-common

Private Properties

Property Type Description
CheckRequireAuthentication bool
OnAuthenticate void
OnEndRequest void

Public Methods

Method Description
Dispose ( ) : void

Disposes of this instance.

Init ( System.Web.HttpApplication app ) : void

Initializes this instance from the application.

OnAuthenticate ( HttpContext context ) : void

Authenticates the current context.

Private Methods

Method Description
CheckRequireAuthentication ( HttpContext context ) : bool

Checks if a request needs to be authentication based on the url requested. Static resource files do not require authentication.

OnAuthenticate ( object sender, EventArgs e ) : void

Handles the OnAuthenticate event subscribed to during Init.

OnEndRequest ( object sender, EventArgs e ) : void

Method Details

Dispose() public method

Disposes of this instance.
public Dispose ( ) : void
return void

Init() public method

Initializes this instance from the application.
public Init ( System.Web.HttpApplication app ) : void
app System.Web.HttpApplication
return void

OnAuthenticate() public static method

Authenticates the current context.
public static OnAuthenticate ( HttpContext context ) : void
context System.Web.HttpContext The context containing the current request to be authenticated and the response.
return void