forked from remote/oauth2
oauth2: add googleapis.com to list of broken oauth2 endpoints
Fixes #85 Change-Id: Ic60eee227763ab4041248716880416056c850f95 Reviewed-on: https://go-review.googlesource.com/3873 Reviewed-by: Burcu Dogan <jbd@google.com>
This commit is contained in:
@@ -384,6 +384,7 @@ func condVal(v string) []string {
|
|||||||
// - Google only accepts URL param (not spec compliant?), not Auth header
|
// - Google only accepts URL param (not spec compliant?), not Auth header
|
||||||
func providerAuthHeaderWorks(tokenURL string) bool {
|
func providerAuthHeaderWorks(tokenURL string) bool {
|
||||||
if strings.HasPrefix(tokenURL, "https://accounts.google.com/") ||
|
if strings.HasPrefix(tokenURL, "https://accounts.google.com/") ||
|
||||||
|
strings.HasPrefix(tokenURL, "https://www.googleapis.com/") ||
|
||||||
strings.HasPrefix(tokenURL, "https://github.com/") ||
|
strings.HasPrefix(tokenURL, "https://github.com/") ||
|
||||||
strings.HasPrefix(tokenURL, "https://api.instagram.com/") ||
|
strings.HasPrefix(tokenURL, "https://api.instagram.com/") ||
|
||||||
strings.HasPrefix(tokenURL, "https://www.douban.com/") ||
|
strings.HasPrefix(tokenURL, "https://www.douban.com/") ||
|
||||||
|
|||||||
Reference in New Issue
Block a user