From 35468a75263ade29d2a06223e4ac86bccc3e2e77 Mon Sep 17 00:00:00 2001 From: James Sweet Date: Wed, 18 Feb 2015 14:15:16 -0500 Subject: [PATCH] Adds twitch.tv to the list of known OAuth2 providers that do not implement the spec fully. Change-Id: I4db53ae2d039de3ddf9cb84e4211d2e0c4f6c41f Reviewed-on: https://go-review.googlesource.com/5180 Reviewed-by: Brad Fitzpatrick Reviewed-by: Andrew Gerrand --- oauth2.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oauth2.go b/oauth2.go index ada29e7..2061ddf 100644 --- a/oauth2.go +++ b/oauth2.go @@ -421,7 +421,8 @@ func providerAuthHeaderWorks(tokenURL string) bool { strings.HasPrefix(tokenURL, "https://www.douban.com/") || strings.HasPrefix(tokenURL, "https://api.dropbox.com/") || strings.HasPrefix(tokenURL, "https://api.soundcloud.com/") || - strings.HasPrefix(tokenURL, "https://www.linkedin.com/") { + strings.HasPrefix(tokenURL, "https://www.linkedin.com/") || + strings.HasPrefix(tokenURL, "https://api.twitch.tv/") { // Some sites fail to implement the OAuth2 spec fully. return false }