Safe Haskell | None |
---|
- data AuthConfig = AuthConfig {
- authSessionName :: ByteString
- authSuccessPage :: ByteString
- authUrl :: Text
- authPrefix :: [Text]
- authReturnToPath :: [Text]
- authLogoutPath :: [Text]
- providers :: [(Text, Provider)]
- data Provider = Provider {
- providerUrl :: Text
- realm :: Maybe Text
- parameters :: [(Text, Text)]
- type HasAuth = ([webApiaryAuthenticateAuth :: Auth], HasSession)
- withAuth :: HasSession => AuthConfig -> (HasAuth => Apiary c ()) -> Apiary c ()
- withAuthWith :: HasSession => ManagerSettings -> AuthConfig -> (HasAuth => Apiary c ()) -> Apiary c ()
- authorized :: HasAuth => Apiary (Snoc as ByteString) a -> Apiary as a
- authLogout :: HasAuth => Action ()
- authConfig :: HasAuth => Action AuthConfig
- authProviders :: HasAuth => Action [(Text, Provider)]
- authRoutes :: HasAuth => Action [(Text, ByteString)]
- module Data.Default.Class
Documentation
data AuthConfig Source
AuthConfig | |
|
type HasAuth = ([webApiaryAuthenticateAuth :: Auth], HasSession)Source
withAuth :: HasSession => AuthConfig -> (HasAuth => Apiary c ()) -> Apiary c ()Source
withAuthWith :: HasSession => ManagerSettings -> AuthConfig -> (HasAuth => Apiary c ()) -> Apiary c ()Source
filter
authorized :: HasAuth => Apiary (Snoc as ByteString) a -> Apiary as aSource
filter which check whether logged in or not, and get id. since 0.7.0.0.
action
authLogout :: HasAuth => Action ()Source
delete session. since 0.7.0.0.
getter
authConfig :: HasAuth => Action AuthConfigSource
get auth config. since 0.7.0.0.
authRoutes :: HasAuth => Action [(Text, ByteString)]Source
get authenticate routes: (title, route). since 0.7.0.0.
reexport
module Data.Default.Class