summaryrefslogtreecommitdiff
path: root/transport.go
AgeCommit message (Collapse)Author
2015-10-22all: change copyright to 'Go Authors'Andrew Gerrand
Fixes golang/go#12354 Change-Id: Ie4bbe9445e2a840c9db830c9bd52a783b7a6f9bc Reviewed-on: https://go-review.googlesource.com/13952 Reviewed-by: Russ Cox <rsc@golang.org>
2015-04-18oauth2: add support for client credential grant typeAaron Torres
Creates a new package called clientcredentials and adds transport and token information to the internal package. Also modifies the oauth2 package to make use of the newly added files in the internal package. The clientcredentials package allows for token requests using a "client credentials" grant type. Fixes https://github.com/golang/oauth2/issues/7 Change-Id: Iec649d1029870c27a2d1023baa9d52db42ff45e8 Reviewed-on: https://go-review.googlesource.com/2983 Reviewed-by: Burcu Dogan <jbd@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2014-12-21oauth2: support CancelRequest when Transport.Base is nilBrad Fitzpatrick
Fixes #54 Change-Id: If00d0ce8e1c0cf32a4b7dba5506187b9012940bc Reviewed-on: https://go-review.googlesource.com/1879 Reviewed-by: Burcu Dogan <jbd@google.com>
2014-12-16oauth2: redesign the APIBrad Fitzpatrick
Tests and examples aren't updated yet. The tree will be broken after this, but nobody should be using this yet anyway. Change-Id: I0004c738f40919ab46d107c71c011c510fbc748f Reviewed-on: https://go-review.googlesource.com/1246 Reviewed-by: Burcu Dogan <jbd@google.com>
2014-12-01oauth2: fix lint errorsBurcu Dogan
Change-Id: I9cc4c61767be5e6eda189468430e9a89fe2f3796
2014-11-25oauth2: Removing the inconsistent and duplicate features, better namingBurcu Dogan
- Removed Flow, flow is a nothing but options. - Renamed Cacher to Storer. - Removed the setter from the Transport. Store should do the initial set. Getter is not removed, because extra fields are available through Transport.Token.Extra(). It's not pleasant to implement a custom Storer implementation to read such values. oauth2: Remove VMs from the AppEngine example title
2014-11-13Add Cacher interface.Burcu Dogan
2014-11-08Introduce an option function typeBurcu Dogan
- Reduce the duplicate code by merging the flows and determining the flow type by looking at the provided options. - Options as a function type allows us to validate an individual an option in its scope and makes it easier to compose the built-in options with the third-party ones.
2014-10-27Allow users to get extra fields from a token response.Burcu Dogan
2014-09-04Access type and approval prompt should be set at URL generation.Burcu Dogan
2014-08-14Don't provide a Transport interface but provide a http.RoundTripper ↵Burcu Dogan
implementation.
2014-08-12Docs, code cleanups.Burcu Dogan
2014-07-11oauth2: don't use http.DefaultTransport.Burcu Dogan
http.DefaultTransport is not available on App Engine.
2014-07-08remove cacheJohan Euphrosine
2014-06-22Caches should return an error instead of invoking a handler.Burcu Dogan
2014-06-17Add docs for NewAuthorizedTransportWithCache.Burcu Dogan
2014-06-17oauth2: perform caching ops at the transport levelBurcu Dogan
2014-05-26Provide a transport constructor for transporters with a cache.Burcu Dogan
2014-05-26Cache read operation should be handled during construction.Burcu Dogan
2014-05-22Fixing styling issues for caching.Burcu Dogan
2014-05-21Moving error handlers to the cache implementations.Burcu Dogan
2014-05-21Merge branch 'cache' of github.com:rakyll/oauth2 into cacheBurcu Dogan
2014-05-19Authorized transport should read from cache and write to cache.Burcu Dogan
2014-05-17Reverting the license back to the original.Burcu Dogan
2014-05-13oauth2: adding license.Burcu Dogan
2014-05-10oauth2: fixing abstractions to be able to provide external token fetchersBurcu Dogan
2014-05-09Initial commitBurcu Dogan