snaplet-customauth-0.2.1: Alternate authentication snaplet
Safe HaskellNone
LanguageHaskell2010

Snap.Snaplet.CustomAuth

Documentation

data AuthUser Source #

Constructors

AuthUser 

Instances

Instances details
Show AuthUser Source # 
Instance details

Defined in Snap.Snaplet.CustomAuth.Types

data AuthFailure e Source #

Instances

Instances details
Show e => Show (AuthFailure e) Source # 
Instance details

Defined in Snap.Snaplet.CustomAuth.Types

class (UserData u, Binary i, Show e, Eq e) => IAuthBackend u i e b | u -> b, b -> e, e -> i where Source #

class UserData a where Source #

Methods

extractUser :: a -> AuthUser Source #

defAuthSettings :: AuthSettings Source #

authName :: Lens' AuthSettings Text Source #

loginUser :: IAuthBackend u i e b => Handler b (AuthManager u e b) () -> Handler b (AuthManager u e b) () -> Handler b (AuthManager u e b) () Source #

logoutUser :: IAuthBackend u i e b => Handler b (AuthManager u e b) () Source #

setUser :: UserData u => u -> Handler b (AuthManager u e b) () Source #

authInit :: IAuthBackend u i e b => Maybe (OAuth2Settings u i e b) -> AuthSettings -> SnapletInit b (AuthManager u e b) Source #