C# Class Tretton37.Nancy.AuthKey.AuthKeyModuleSecurity

Mostra file Open project: tretton37/Nancy.AuthKey

Public Methods

Method Description
AuthKeyModuleSecurity ( IEnumerable keys ) : Nancy
FromAppSettings ( ) : AuthKeyModuleSecurity
RequiresAuthentication ( Nancy.NancyModule module ) : void

Private Methods

Method Description
IsLocalHost ( string hostName ) : bool
RequiresAuthentication ( Nancy.NancyContext context ) : Response

Method Details

AuthKeyModuleSecurity() public method

public AuthKeyModuleSecurity ( IEnumerable keys ) : Nancy
keys IEnumerable
return Nancy

FromAppSettings() public static method

public static FromAppSettings ( ) : AuthKeyModuleSecurity
return AuthKeyModuleSecurity

RequiresAuthentication() public method

public RequiresAuthentication ( Nancy.NancyModule module ) : void
module Nancy.NancyModule
return void