C# Class Contrive.Auth.Web.Modules.AuthenticationModuleBase

Inheritance: IHttpModule
Afficher le fichier Open project: alanstevens/Contrive

Protected Properties

Свойство Type Description
_realm string

Méthodes publiques

Méthode Description
Dispose ( ) : void
Init ( System.Web.HttpApplication application ) : void

Inits the specified module.

Méthodes protégées

Méthode Description
AccessDenied ( System.Web.HttpApplication app ) : void
ApplicationAuthenticateRequest ( object sender, EventArgs e ) : void

Handles the AuthenticateRequest event of the application control.

The main work is done here. We parse incoming headers, get user name and password from them. Then we verify the user name and password against configured membership provider.

ApplicationEndRequest ( object sender, EventArgs e ) : void

Handles the EndRequest event of the application control.

This methods adds the "WWW-Authenticate" challenge header to all requests ending with the HTTP status code 401 (Access Denied), set either in this module's application_AuthenticateRequest or in any other place in application (most likely the authorization module).

Authenticate ( System.Web.HttpApplication app ) : bool
BuildChallengeHeader ( System.Web.HttpApplication app ) : string
GetConfigurationProvider ( ) : IConfigurationProvider
GetUserService ( ) : IUserService

Method Details

AccessDenied() protected static méthode

protected static AccessDenied ( System.Web.HttpApplication app ) : void
app System.Web.HttpApplication
Résultat void

ApplicationAuthenticateRequest() protected méthode

Handles the AuthenticateRequest event of the application control.
The main work is done here. We parse incoming headers, get user name and password from them. Then we verify the user name and password against configured membership provider.
protected ApplicationAuthenticateRequest ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs /// The instance containing the event data. ///
Résultat void

ApplicationEndRequest() protected méthode

Handles the EndRequest event of the application control.
This methods adds the "WWW-Authenticate" challenge header to all requests ending with the HTTP status code 401 (Access Denied), set either in this module's application_AuthenticateRequest or in any other place in application (most likely the authorization module).
protected ApplicationEndRequest ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs /// The instance containing the event data. ///
Résultat void

Authenticate() protected abstract méthode

protected abstract Authenticate ( System.Web.HttpApplication app ) : bool
app System.Web.HttpApplication
Résultat bool

BuildChallengeHeader() protected abstract méthode

protected abstract BuildChallengeHeader ( System.Web.HttpApplication app ) : string
app System.Web.HttpApplication
Résultat string

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetConfigurationProvider() protected static méthode

protected static GetConfigurationProvider ( ) : IConfigurationProvider
Résultat IConfigurationProvider

GetUserService() protected static méthode

protected static GetUserService ( ) : IUserService
Résultat IUserService

Init() public méthode

Inits the specified module.
public Init ( System.Web.HttpApplication application ) : void
application System.Web.HttpApplication The HTTP application containing the module.
Résultat void

Property Details

_realm protected_oe property

protected string _realm
Résultat string