Burcu Dogan
9b6b7610ad
oauth2: rewrite google package, fix the broken build
...
Change-Id: I2753a88d7be483bdbc0cac09a1beccc4806ea4bc
Reviewed-on: https://go-review.googlesource.com/1361
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2014-12-16 06:20:58 +00:00
Brad Fitzpatrick
a568078818
oauth2: redesign the API
...
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-16 06:20:49 +00:00
Burcu Dogan
e750a2fd5a
oauth2: add vanity URL import comments, use the vanity URL on builds
...
Change-Id: Ia20e40d98aa709e3d598388e0a15501584152ab5
2014-11-26 11:47:34 -08:00
Burcu Dogan
0cf6f9b144
Introduce an option function type
...
- 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-11-08 09:46:26 +11:00
Burcu Dogan
0ae3d4edc9
Allow users to get extra fields from a token response.
2014-10-27 20:01:11 -07:00
Burcu Dogan
948919caa0
Merge branch 'httpclient'
2014-09-03 18:04:35 -07:00
Burcu Dogan
8524783bd7
Allow configs to be initialised with zero values for Client and Transport.
2014-09-02 14:06:51 -07:00
Andrew Gerrand
32db53ef55
better error handling in JWT fetchtoken
2014-09-01 14:39:59 +10:00
Burcu Dogan
32b45383ad
Managed VM users should depend on http.DefaultTransport by default.
2014-08-31 16:08:13 -07:00
Burcu Dogan
6bb0a5207a
Do not assume that http.DefaultClient and http.DefaultTransport is always available.
2014-08-31 15:17:36 -07:00
Burcu Dogan
03a41b25d4
Don't assume private key to be available on a traditional file system.
2014-08-18 12:49:20 -07:00
Burcu Dogan
ee77246177
Don't provide a Transport interface but provide a http.RoundTripper implementation.
2014-08-14 10:59:09 -07:00
Burcu Dogan
f9dc7568c2
Docs improvements, lint error fixes.
2014-08-13 13:40:18 -07:00
Burcu Dogan
eb7270d354
oauth2: Allow use of arbitrary RSA private keys to sign JWT token retrieving requests.
2014-08-11 17:54:04 -07:00
Burcu Dogan
067c73f77e
Clone authURL.
2014-07-21 16:44:58 -07:00
Burcu Dogan
4ad15bb1fc
Remove named return values.
2014-07-20 21:07:57 -07:00
Burcu Dogan
70bd497612
Fail during conf init if auth or token URL is not valid.
2014-07-20 16:56:38 -07:00
Burcu Dogan
6b4f2ed2ce
Use default client rather than a new client instance.
2014-07-14 10:26:21 -07:00
Burcu Dogan
0f597d5ad4
oauth2: don't use http.DefaultTransport.
...
http.DefaultTransport is not available on App Engine.
2014-07-11 10:57:28 -07:00
Johan Euphrosine
93ad3f4a9e
remove cache
2014-07-08 22:27:34 -07:00
Burcu Dogan
4337573be3
oauth2: perform caching ops at the transport level
2014-06-17 16:09:09 +02:00
Burcu Dogan
002375a1dd
Removing unnecessary option getters.
2014-05-26 17:29:56 +02:00
Burcu Dogan
4b558944a3
Provide missing docs for Cache interface and transport constructors.
2014-05-26 16:47:46 +02:00
Burcu Dogan
c376bb1dac
JWTConfig should provide a cached transport constructor.
2014-05-26 15:20:26 +02:00
Burcu Dogan
dd66946789
Merge branch 'cache' of github.com:rakyll/oauth2 into cache
2014-05-21 15:24:41 +02:00
Burcu Dogan
227bfbf02f
Introduction of cache interface and a file cacher.
2014-05-19 00:14:56 +02:00
Burcu Dogan
abc4bcd940
Reverting the license back to the original.
2014-05-17 17:26:57 +02:00
Burcu Dogan
643fd905db
Avoid returning non-existent errors.
2014-05-15 12:09:36 +02:00
Burcu Dogan
6c54258546
Package will be available on github.com/golang/oauth2.
2014-05-15 11:53:56 +02:00
Burcu Dogan
c0f71b6bc4
Fixing import path.
2014-05-14 12:05:11 +03:00
Burcu Dogan
d7c8bcd0d0
oauth2: adding license.
2014-05-13 21:06:46 +03:00
Burcu Dogan
1b3c225070
oauth2: removing unnecessary interface definitions.
2014-05-10 14:43:21 +03:00
Burcu Dogan
2af52e700e
oauth2: fixing abstractions to be able to provide external token fetchers
2014-05-10 09:41:39 +02:00
Burcu Dogan
c32debaa6f
Initial commit
2014-05-09 23:05:13 +02:00