mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
As per https://tools.ietf.org/html/rfc6749#section-2.3.1 client IDs and secrets must be urlencoded in the authorization header. This patch addresses this by wrapping clientID and clientSecret with url.QueryEscape. A dedicated test for unsafe-url client IDs and secrets has been added as well. Closes #237 Change-Id: I1f277b52caef4932e14147be8fb1712203da51d0 Reviewed-on: https://go-review.googlesource.com/46473 Reviewed-by: JBD <jbd@google.com>