mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
Merge branch 'master' of github.com:golang/oauth2
This commit is contained in:
commit
271b19bc29
@ -12,8 +12,8 @@ go get github.com/golang/oauth2
|
|||||||
|
|
||||||
See godoc for further documentation and examples.
|
See godoc for further documentation and examples.
|
||||||
|
|
||||||
* [github.com/golang/oauth2](http://godoc.org/github.com/golang/oauth2)
|
* [godoc.org/github.com/golang/oauth2](http://godoc.org/github.com/golang/oauth2)
|
||||||
* [github.com/golang/oauth2/google](http://godoc.org/github.com/golang/oauth2/google)
|
* [godoc.org/github.com/golang/oauth2/google](http://godoc.org/github.com/golang/oauth2/google)
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
@ -286,7 +286,8 @@ func providerAuthHeaderWorks(tokenURL string) bool {
|
|||||||
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/") ||
|
||||||
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.
|
// Some sites fail to implement the OAuth2 spec fully.
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user