snaplet-customauth-0.1.0: Alternate authentication snaplet

Safe HaskellNone
LanguageHaskell98

Snap.Snaplet.CustomAuth

Documentation

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 #

Minimal complete definition

extractUser

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 #