oauth2: long if condition in providerAuthHeaderWorks replaced with loop

Long if condition replaced with loop.

Related to issue #41.

Change-Id: Ib5b88ce2ee2841e9b6c24d78f93bb027141bf678
Reviewed-on: https://go-review.googlesource.com/7290
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: Burcu Dogan <jbd@google.com>
2 files changed
tree: 426e04698d0fbbc0d25958cb8aca3457cdbf2d57
  1. github/
  2. google/
  3. internal/
  4. jws/
  5. jwt/
  6. .travis.yml
  7. AUTHORS
  8. client_appengine.go
  9. CONTRIBUTING.md
  10. CONTRIBUTORS
  11. example_test.go
  12. LICENSE
  13. oauth2.go
  14. oauth2_test.go
  15. README.md
  16. token.go
  17. token_test.go
  18. transport.go
  19. transport_test.go
README.md

OAuth2 for Go

Build Status

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.