Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Gitlab = Gitlab {}
- mkGitlabProvider :: Text -> Text -> Text -> Text -> [ByteString] -> Maybe ProviderInfo -> Gitlab
- gitlabParser :: ProviderParser
Documentation
Gitlab authentication provider
Instances
FromJSON Gitlab Source # | |
AuthProvider Gitlab Source # | |
Defined in Network.Wai.Middleware.Auth.OAuth2.Gitlab getProviderName :: Gitlab -> Text Source # getProviderInfo :: Gitlab -> ProviderInfo Source # handleLogin :: Gitlab -> Request -> [Text] -> Render ProviderUrl -> (AuthLoginState -> IO Response) -> (Status -> ByteString -> IO Response) -> IO Response Source # refreshLoginState :: Gitlab -> Request -> AuthUser -> IO (Maybe (Request, AuthUser)) Source # |
:: Text | Hostname of GitLab instance (e.g. |
-> Text | Name of the application as it is registered on gitlab |
-> Text |
|
-> Text |
|
-> [ByteString] | White list of posix regular expressions for emails attached to gitlab account. |
-> Maybe ProviderInfo | Replacement for default info |
-> Gitlab |
Create a gitlab authentication provider
Since: 0.2.4.0
gitlabParser :: ProviderParser Source #
Aeson parser for Gitlab
provider.
Since: 0.2.4.0