From d9695d60c695f008094c978a45a05851b8f8b03e Mon Sep 17 00:00:00 2001 From: Antonio Pagano Date: Tue, 2 Jan 2018 21:40:17 -0500 Subject: [PATCH] auth endpoint for auth0 is now /authorize --- providers/auth0/auth0.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/providers/auth0/auth0.go b/providers/auth0/auth0.go index 1d6d98d4f..61ff42c24 100644 --- a/providers/auth0/auth0.go +++ b/providers/auth0/auth0.go @@ -8,13 +8,14 @@ import ( "io" "net/http" + "fmt" + "github.com/markbates/goth" "golang.org/x/oauth2" - "fmt" ) const ( - authEndpoint string = "/oauth/authorize" + authEndpoint string = "/authorize" tokenEndpoint string = "/oauth/token" endpointProfile string = "/userinfo" protocol string = "https://" @@ -44,11 +45,11 @@ type auth0UserResp struct { // create one manually. func New(clientKey, secret, callbackURL string, auth0Domain string, scopes ...string) *Provider { p := &Provider{ - ClientKey: clientKey, - Secret: secret, - CallbackURL: callbackURL, - Domain: auth0Domain, - providerName: "auth0", + ClientKey: clientKey, + Secret: secret, + CallbackURL: callbackURL, + Domain: auth0Domain, + providerName: "auth0", } p.config = newConfig(p, scopes) return p