forked from Mirrors/oauth2
6d4eed4495
PayPal returns "expires_in" token field as string, not integer. So, current implementation cannot unmarshal json of tokenJSON due type mismatch. This patch fixes the issue declaring field as interface{} in tokenJSON and performing type switch in "func (e *tokenJSON) expiry()". Related to issue #41. Change-Id: I69301e08c8a56fca049ca47906e32528cd22aef9 Reviewed-on: https://go-review.googlesource.com/6924 Reviewed-by: Andrew Gerrand <adg@golang.org> |
||
---|---|---|
github | ||
internal | ||
jws | ||
jwt | ||
.travis.yml | ||
AUTHORS | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
LICENSE | ||
README.md | ||
client_appengine.go | ||
example_test.go | ||
oauth2.go | ||
oauth2_test.go | ||
token.go | ||
token_test.go | ||
transport.go | ||
transport_test.go |
README.md
OAuth2 for Go
oauth2 package contains a client implementation for OAuth 2.0 spec.
Installation
go get golang.org/x/oauth2
See godoc for further documentation and examples.