Commit Graph

33 Commits

Author SHA1 Message Date
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 3a5e8819eb Rename exchange code to code, document as authorization code. 2014-08-16 21:21:58 -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 b314823c0b TokenFetcher should not mutate existing tokens. 2014-08-13 16:47:57 -07:00
Burcu Dogan b2a1756f98 Merge branch 'scopes-omit' 2014-08-13 14:05:44 -07:00
Burcu Dogan de4c4313f9 Adding required client_secret credential. 2014-08-13 13:59:53 -07:00
Burcu Dogan f9dc7568c2 Docs improvements, lint error fixes. 2014-08-13 13:40:18 -07:00
Burcu Dogan 03e5fbeae0 Fixing json tags. 2014-08-12 23:42:30 -07:00
Burcu Dogan a9dc52b3d3 Docs, code cleanups. 2014-08-12 19:50:34 -07:00
Burcu Dogan 4c579cbd0d Export exchange.
Allows users to exchange and retrieve a token
without initialising a Transport.
2014-08-11 00:27:43 -07:00
Arnaud Ysmal 87013cb7c2 Make AccessType, ApprovalPrompt and RedirectURL optional. 2014-07-31 21:06:10 +02: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 5501212e88 Merge branch 'readme' 2014-06-27 17:04:43 -07:00
Burcu Dogan de1f5a349e Dont export exchange. 2014-06-26 17:27:53 -07:00
Burcu Dogan c4d44ca3c9 Add examples for regular and JWT configs and transport init. 2014-06-24 12:44:20 -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 58513eb0ea Provide a transport constructor for transporters with a cache. 2014-05-26 14:45:41 +02:00
Burcu Dogan 0476447419 Moving error handlers to the cache implementations. 2014-05-21 15:56:44 +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 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