C# Class AppMetrics.WebUtils.BasicAuthenticationModule

Inheritance: IHttpModule
Afficher le fichier Open project: fandrei/AppMetrics

Méthodes publiques

Méthode Description
CreateUser ( string userName, string password ) : void
Dispose ( ) : void
Init ( System.Web.HttpApplication context ) : void
IsAnonymousAccessAllowed ( HttpRequest request ) : bool

Private Methods

Méthode Description
Authenticate ( HttpContext context ) : bool
AuthenticateRequest ( object sender, EventArgs e ) : void
CheckPassword ( UserCredentials user, string password ) : bool
GetPasswordHash ( string salt, string password ) : string
GetUser ( string name ) : UserCredentials
ParseAuthHeader ( string authHeader ) : string[]
TryGetPrincipal ( string creds ) : IPrincipal

Method Details

CreateUser() public static méthode

public static CreateUser ( string userName, string password ) : void
userName string
password string
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Init() public méthode

public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
Résultat void

IsAnonymousAccessAllowed() public static méthode

public static IsAnonymousAccessAllowed ( HttpRequest request ) : bool
request System.Web.HttpRequest
Résultat bool