mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01:00
address comment: add oauth2Auth0Host
This commit is contained in:
parent
ff5450d41a
commit
0dcda6363d
@ -7,6 +7,7 @@
|
||||
--
|
||||
module Yesod.Auth.OAuth2.Auth0
|
||||
( oauth2Auth0HostScopes
|
||||
, oauth2Auth0Host
|
||||
, defaultAuth0Scopes
|
||||
) where
|
||||
|
||||
@ -28,6 +29,10 @@ defaultAuth0Scopes = ["openid"]
|
||||
pluginName :: Text
|
||||
pluginName = "auth0"
|
||||
|
||||
oauth2Auth0Host
|
||||
:: YesodAuth m => URI -> Text -> Text -> AuthPlugin m
|
||||
oauth2Auth0Host host = oauth2Auth0HostScopes host defaultAuth0Scopes
|
||||
|
||||
oauth2Auth0HostScopes
|
||||
:: YesodAuth m => URI -> [Text] -> Text -> Text -> AuthPlugin m
|
||||
oauth2Auth0HostScopes host scopes clientId clientSecret =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user