Safe Haskell | None |
---|
- data Auth
- data AuthConfig = AuthConfig {
- authSessionName :: ByteString
- authSuccessPage :: ByteString
- authSessionConfig :: SessionConfig
- 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
- initAuth :: (Has Session exts, MonadBaseControl IO m) => AuthConfig -> Initializer exts m (Auth : exts)
- initAuthWith :: (Has Session exts, MonadBaseControl IO m) => ManagerSettings -> AuthConfig -> Initializer exts m (Auth : exts)
- initAuthWithManager :: (Has Session exts, MonadBaseControl IO m) => Manager -> AuthConfig -> Initializer exts m (Auth : exts)
- authHandler :: (Monad m, MonadIO actM, Has Auth exts, Has Session exts) => ApiaryT exts prms actM m ()
- authorized :: (Has Auth exts, MonadIO actM, Has Session exts) => ApiaryT exts (OpenId : prms) actM m () -> ApiaryT exts prms actM m ()
- authLogout :: (Monad m, Has Auth exts) => ActionT exts m ()
- authConfig :: (Has Auth exts, Monad m) => ActionT exts m AuthConfig
- authProviders :: (Has Auth exts, Monad m) => ActionT exts m [(Text, Provider)]
- authRoutes :: (Has Auth exts, Monad m) => ActionT exts m [(Text, ByteString)]
Documentation
data AuthConfig Source
AuthConfig | |
|
initializer
initAuth :: (Has Session exts, MonadBaseControl IO m) => AuthConfig -> Initializer exts m (Auth : exts)Source
initAuthWith :: (Has Session exts, MonadBaseControl IO m) => ManagerSettings -> AuthConfig -> Initializer exts m (Auth : exts)Source
initAuthWithManager :: (Has Session exts, MonadBaseControl IO m) => Manager -> AuthConfig -> Initializer exts m (Auth : exts)Source
handler
authHandler :: (Monad m, MonadIO actM, Has Auth exts, Has Session exts) => ApiaryT exts prms actM m ()Source
default auth handlers. since 0.8.0.0.
filter
authorized :: (Has Auth exts, MonadIO actM, Has Session exts) => ApiaryT exts (OpenId : prms) actM m () -> ApiaryT exts prms actM m ()Source
filter which check whether logged in or not, and get id. since 0.7.0.0.
action
getter
authConfig :: (Has Auth exts, Monad m) => ActionT exts m AuthConfigSource
authRoutes :: (Has Auth exts, Monad m) => ActionT exts m [(Text, ByteString)]Source
get authenticate routes: (title, route). since 0.7.0.0.