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