forked from Mirrors/oauth2
internal: add Facebook Graph API to the brokens list
CL/23790 breaks the calls to Facebook, adding Facebook to the brokens list is reported to fix the problem. Fixes golang/oauth2#214. Change-Id: I3b3440de723b4933bc49b5a52698c825affbf643 Reviewed-on: https://go-review.googlesource.com/36633 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Chris Broadfoot <cbro@golang.org>
This commit is contained in:
parent
4464e78483
commit
de0725b330
|
@ -91,6 +91,7 @@ func (e *expirationTime) UnmarshalJSON(b []byte) error {
|
||||||
|
|
||||||
var brokenAuthHeaderProviders = []string{
|
var brokenAuthHeaderProviders = []string{
|
||||||
"https://accounts.google.com/",
|
"https://accounts.google.com/",
|
||||||
|
"https://api.codeswholesale.com/oauth/token",
|
||||||
"https://api.dropbox.com/",
|
"https://api.dropbox.com/",
|
||||||
"https://api.dropboxapi.com/",
|
"https://api.dropboxapi.com/",
|
||||||
"https://api.instagram.com/",
|
"https://api.instagram.com/",
|
||||||
|
@ -101,6 +102,7 @@ var brokenAuthHeaderProviders = []string{
|
||||||
"https://api.twitch.tv/",
|
"https://api.twitch.tv/",
|
||||||
"https://app.box.com/",
|
"https://app.box.com/",
|
||||||
"https://connect.stripe.com/",
|
"https://connect.stripe.com/",
|
||||||
|
"https://graph.facebook.com", // see https://github.com/golang/oauth2/issues/214
|
||||||
"https://login.microsoftonline.com/",
|
"https://login.microsoftonline.com/",
|
||||||
"https://login.salesforce.com/",
|
"https://login.salesforce.com/",
|
||||||
"https://oauth.sandbox.trainingpeaks.com/",
|
"https://oauth.sandbox.trainingpeaks.com/",
|
||||||
|
@ -118,7 +120,6 @@ var brokenAuthHeaderProviders = []string{
|
||||||
"https://www.wunderlist.com/oauth/",
|
"https://www.wunderlist.com/oauth/",
|
||||||
"https://api.patreon.com/",
|
"https://api.patreon.com/",
|
||||||
"https://sandbox.codeswholesale.com/oauth/token",
|
"https://sandbox.codeswholesale.com/oauth/token",
|
||||||
"https://api.codeswholesale.com/oauth/token",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterBrokenAuthHeaderProvider(tokenURL string) {
|
func RegisterBrokenAuthHeaderProvider(tokenURL string) {
|
||||||
|
|
Loading…
Reference in New Issue