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 = (Given Auth, HasSession)
- withAuth :: HasSession => AuthConfig -> (HasAuth => IO a) -> IO a
- withAuthWith :: HasSession => ManagerSettings -> AuthConfig -> (HasAuth => IO a) -> IO a
- authHandler :: (Functor n, MonadIO n, HasAuth) => ApiaryT c n m ()
- authorized :: HasAuth => Apiary (Snoc as ByteString) a -> Apiary as a
- authLogout :: (Monad m, HasAuth) => ActionT m ()
- authConfig :: (Monad m, HasAuth) => ActionT m AuthConfig
- authProviders :: (Monad m, HasAuth) => ActionT m [(Text, Provider)]
- authRoutes :: (Monad m, HasAuth) => ActionT m [(Text, ByteString)]
- module Data.Default.Class
Documentation
data AuthConfig Source
AuthConfig | |
|
type HasAuth = (Given Auth, HasSession)Source
withAuth :: HasSession => AuthConfig -> (HasAuth => IO a) -> IO aSource
withAuthWith :: HasSession => ManagerSettings -> AuthConfig -> (HasAuth => IO a) -> IO aSource
authHandler :: (Functor n, MonadIO n, HasAuth) => ApiaryT c n m ()Source
default auth handlers. since 0.8.0.0.
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 :: (Monad m, HasAuth) => ActionT m ()Source
delete session. since 0.7.0.0.
getter
authConfig :: (Monad m, HasAuth) => ActionT m AuthConfigSource
get auth config. since 0.7.0.0.
authProviders :: (Monad m, HasAuth) => ActionT m [(Text, Provider)]Source
get providers. since 0.7.0.0.
authRoutes :: (Monad m, HasAuth) => ActionT m [(Text, ByteString)]Source
get authenticate routes: (title, route). since 0.7.0.0.
reexport
module Data.Default.Class