C# Class AppMetrics.WebUtils.BasicAuthenticationModule

Inheritance: IHttpModule
Exibir arquivo Open project: fandrei/AppMetrics

Public Methods

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

Private Methods

Method 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 method

public static CreateUser ( string userName, string password ) : void
userName string
password string
return void

Dispose() public method

public Dispose ( ) : void
return void

Init() public method

public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
return void

IsAnonymousAccessAllowed() public static method

public static IsAnonymousAccessAllowed ( HttpRequest request ) : bool
request System.Web.HttpRequest
return bool