yesod-auth-0.4.0.1: Authentication for Yesod.

Yesod.Helpers.Auth

Contents

Synopsis

Subsite

data Auth Source

Instances

(Yesod master, YesodAuth master) => YesodDispatch Auth master 

data AuthPlugin m Source

Constructors

AuthPlugin 

Fields

apName :: Text
 
apDispatch :: Method -> [Piece] -> GHandler Auth m ()
 
apLogin :: forall s. (Route Auth -> Route m) -> GWidget s m ()
 

Plugin interface

data Creds m Source

User credentials

Constructors

Creds 

Fields

credsPlugin :: Text

How the user was authenticated

credsIdent :: Text

Identifier. Exact meaning depends on plugin.

credsExtra :: [(Text, Text)]
 

setCreds :: YesodAuth m => Bool -> Creds m -> GHandler s m ()Source

FIXME: won't show up till redirect

User functions

maybeAuthId :: YesodAuth m => GHandler s m (Maybe (AuthId m))Source

Retrieves user credentials, if user is authenticated.