Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- oauth2GitLab :: YesodAuth m => Text -> Text -> AuthPlugin m
- oauth2GitLabHostScopes :: YesodAuth m => URI -> [Text] -> Text -> Text -> AuthPlugin m
- defaultHost :: URI
- defaultScopes :: [Text]
Documentation
oauth2GitLab :: YesodAuth m => Text -> Text -> AuthPlugin m Source #
Authorize with gitlab.com
and ["read_user"]
To customize either of these values, use
and pass
the default for the argument not being customized. Note that we require at
least oauth2GitLabHostScopes
read_user
, so we can request the credentials identifier.
oauth2GitLabHostScopes defaultHost ["api", "read_user"] oauth2GitLabHostScopes "https://gitlab.example.com" defaultScopes
oauth2GitLabHostScopes :: YesodAuth m => URI -> [Text] -> Text -> Text -> AuthPlugin m Source #
defaultHost :: URI Source #
defaultScopes :: [Text] Source #