mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-04-23 11:17:43 +02:00
address comment: add oauth2Auth0Host
This commit is contained in:
parent
ff5450d41a
commit
0dcda6363d
@ -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