C# Класс Contrive.Auth.Web.Modules.AuthenticationModuleBase

Наследование: IHttpModule
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_realm string

Открытые методы

Метод Описание
Dispose ( ) : void
Init ( System.Web.HttpApplication application ) : void

Inits the specified module.

Защищенные методы

Метод Описание
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

Описание методов

AccessDenied() защищенный статический Метод

protected static AccessDenied ( System.Web.HttpApplication app ) : void
app System.Web.HttpApplication
Результат void

ApplicationAuthenticateRequest() защищенный Метод

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. ///
Результат void

ApplicationEndRequest() защищенный Метод

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. ///
Результат void

Authenticate() защищенный абстрактный Метод

protected abstract Authenticate ( System.Web.HttpApplication app ) : bool
app System.Web.HttpApplication
Результат bool

BuildChallengeHeader() защищенный абстрактный Метод

protected abstract BuildChallengeHeader ( System.Web.HttpApplication app ) : string
app System.Web.HttpApplication
Результат string

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetConfigurationProvider() защищенный статический Метод

protected static GetConfigurationProvider ( ) : IConfigurationProvider
Результат IConfigurationProvider

GetUserService() защищенный статический Метод

protected static GetUserService ( ) : IUserService
Результат IUserService

Init() публичный Метод

Inits the specified module.
public Init ( System.Web.HttpApplication application ) : void
application System.Web.HttpApplication The HTTP application containing the module.
Результат void

Описание свойств

_realm защищенное свойство

protected string _realm
Результат string