27 Commits

Author SHA1 Message Date
Burcu Dogan
2e27b6b6cb Handle non-2xx for metadata server responses. 2014-10-23 10:06:00 -07:00
Paddy Foran
ad051cf1e6 Update metadata server URL to be a FQDN.
Without a fully qualified domain name, containers (like Docker) can't
connect to the metadata server. Update the address for the metadata
server to be a FQDN so containers can use the library. See #44.
2014-10-07 17:38:45 -04:00
Burcu Dogan
7ffb9a8fe1 Fixing path.join for URL generation. 2014-09-22 08:37:20 -07:00
Burcu Dogan
9d409b9dbd Merge branch 'jsonkeyfile' 2014-09-03 19:26:04 -07:00
Burcu Dogan
331436720f Adding support for Google Developers Console JSON key files. 2014-09-03 18:02:55 -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
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
ee77246177 Don't provide a Transport interface but provide a http.RoundTripper implementation. 2014-08-14 10:59:09 -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
Burcu Dogan
fe0eecc41c Some cleanup, adding Google web flow example. 2014-06-24 13:10:10 -07:00
Burcu Dogan
4337573be3 oauth2: perform caching ops at the transport level 2014-06-17 16:09:09 +02:00
Burcu Dogan
5c1195ac3f Constructor can't return an error for Compute Engine confs. 2014-05-30 13:02:54 +02:00
Burcu Dogan
075fdd8e10 Fix oauth2's import path. 2014-05-30 12:39:43 +02:00
Burcu Dogan
904252a9e8 ComputeEngineConfig should implement TokenFetcher. 2014-05-27 14:37:57 +02:00
Burcu Dogan
13179d7d8a Switch to google.golang.org based import path. 2014-05-27 14:37:35 +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
223212dc91 Adding token fetching implementing for Compute Engine. 2014-05-11 18:06:03 +03:00
Burcu Dogan
c1d53e71ad Minor docs fix. 2014-05-10 14:50:51 +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