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)]
- data OpenId_ a = OpenId_ {}
- type OpenId = OpenId_ Text
- type HasAuth = Given Auth
- 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 OpenId) a -> Apiary as a
- authLogout :: (Monad m, HasAuth) => ActionT m ()
- authConfig :: HasAuth => AuthConfig
- authProviders :: HasAuth => [(Text, Provider)]
- authRoutes :: HasAuth => [(Text, ByteString)]
- module Data.Default.Class
Documentation
data AuthConfig Source
AuthConfig | |
|
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 OpenId) 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
authProviders :: HasAuth => [(Text, Provider)]Source
authRoutes :: HasAuth => [(Text, ByteString)]Source
get authenticate routes: (title, route). since 0.7.0.0.
reexport
module Data.Default.Class