From 099e4f09b02887072a8a0ecb5c06aea1013e63d8 Mon Sep 17 00:00:00 2001 From: CL Sung Date: Thu, 11 Sep 2014 10:49:49 +0800 Subject: [PATCH] Add Linkedin to the providers not supporting Auth headers. --- oauth2.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oauth2.go b/oauth2.go index 3ac7c7e..6908524 100644 --- a/oauth2.go +++ b/oauth2.go @@ -286,7 +286,8 @@ func providerAuthHeaderWorks(tokenURL string) bool { strings.HasPrefix(tokenURL, "https://github.com/") || strings.HasPrefix(tokenURL, "https://api.instagram.com/") || strings.HasPrefix(tokenURL, "https://www.douban.com/") || - strings.HasPrefix(tokenURL, "https://api.dropbox.com/") { + strings.HasPrefix(tokenURL, "https://api.dropbox.com/") || + strings.HasPrefix(tokenURL, "https://www.linkedin.com/") { // Some sites fail to implement the OAuth2 spec fully. return false }