Skip to content

Commit

Permalink
Merge pull request google#50 from shinfan/sgauth2
Browse files Browse the repository at this point in the history
Update the default auth and token endpoints
  • Loading branch information
wora authored Sep 1, 2018
2 parents df8e0fc + d52882a commit 3148ca0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions go/sgauth/credentials/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ import (
"github.com/google/oauth2l/go/sgauth/internal"
)

// DefaultTokenURL is Google's OAuth 2.0 token URL to use with the JWT flow.
const DefaultTokenURL = "https://accounts.google.com/o/oauth2/token"
// DefaultTokenURL is Google's OAuth 2.0 token URL to use with the service
// account flow.
const DefaultTokenURL = "https://oauth2.googleapis.com/token"

// DefaultAuthURL is Google's OAuth 2.0 Auth URL to use with the 2LO flow.
// DefaultAuthURL is Google's OAuth 2.0 Auth URL to use with the end-user
// authentication flow.
const DefaultAuthURL = "https://accounts.google.com/o/oauth2/auth"

// JSON key file types.
Expand Down

0 comments on commit 3148ca0

Please sign in to comment.