Skip to content

Commit

Permalink
upate oauth2ndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
salrashid123 committed Oct 16, 2023
1 parent 1a06a75 commit 0c0f581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adc.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func main() {
data.Add("assertion_type", "http://oauth.net/grant_type/jwt/1.0/bearer")
data.Add("assertion", tokenString)

hreq, err := http.NewRequest("POST", "https://accounts.google.com/o/oauth2/token", bytes.NewBufferString(data.Encode()))
hreq, err := http.NewRequest("POST", "https://oauth2.googleapis.com/token", bytes.NewBufferString(data.Encode()))
if err != nil {
fmt.Printf("Error: Unable to generate token Request, %v\n", err)
os.Exit(1)
Expand Down

0 comments on commit 0c0f581

Please sign in to comment.