Skip to content

Commit

Permalink
auth endpoint for auth0 is now /authorize
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni authored and markbates committed Jan 3, 2018
1 parent 78433fe commit d9695d6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions providers/auth0/auth0.go
Original file line number Diff line number Diff line change
Expand Up @@ -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://"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d9695d6

Please sign in to comment.