Skip to content

Commit

Permalink
Update token.go
Browse files Browse the repository at this point in the history
No need to escape special characters in both client id and client secret for basic authentication
  • Loading branch information
vanhuycntt authored Dec 18, 2022
1 parent b177c21 commit 59fd4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func newTokenRequest(tokenURL, clientID, clientSecret string, v url.Values, auth
}
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
if authStyle == AuthStyleInHeader {
req.SetBasicAuth(url.QueryEscape(clientID), url.QueryEscape(clientSecret))
req.SetBasicAuth(clientID, clientSecret)
}
return req, nil
}
Expand Down

0 comments on commit 59fd4d7

Please sign in to comment.