yesod-auth-oauth2-0.6.1.1: OAuth 2.0 authentication plugins

Safe HaskellNone
LanguageHaskell2010

Yesod.Auth.OAuth2.GitLab

Synopsis

Documentation

oauth2GitLab :: YesodAuth m => Text -> Text -> AuthPlugin m Source #

Authorize with gitlab.com and ["read_user"]

To customize either of these values, use oauth2GitLabHostScopes and pass the default for the argument not being customized. Note that we require at least read_user, so we can request the credentials identifier.

oauth2GitLabHostScopes defaultHost ["api", "read_user"]
oauth2GitLabHostScopes "https://gitlab.example.com" defaultScopes