C# Class Castle.Applications.MindDump.Presentation.Filters.AuthenticationCheckFilter

Looks for a cookie "authenticationticket", decrypt it and obtains the login name. It then obtains the Author based on the login and associate the user with the context.
Inheritance: IFilter
Mostra file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
AuthenticationCheckFilter ( AccountService accountService, EncryptionService encryptionService ) : System
Perform ( ExecuteEnum exec, IRailsEngineContext context, Controller controller ) : bool

Protected Methods

Method Description
PerformAuthentication ( IRailsEngineContext context ) : bool

Method Details

AuthenticationCheckFilter() public method

public AuthenticationCheckFilter ( AccountService accountService, EncryptionService encryptionService ) : System
accountService Castle.Applications.MindDump.Services.AccountService
encryptionService Castle.Applications.MindDump.Services.EncryptionService
return System

Perform() public method

public Perform ( ExecuteEnum exec, IRailsEngineContext context, Controller controller ) : bool
exec ExecuteEnum
context IRailsEngineContext
controller Castle.MonoRail.Framework.Controller
return bool

PerformAuthentication() protected method

protected PerformAuthentication ( IRailsEngineContext context ) : bool
context IRailsEngineContext
return bool