Commit Graph

117 Commits

Author SHA1 Message Date
PoiScript 042c1826bf
Replace hyper with reqwest 2017-08-23 14:53:26 -04:00
Curtis McEnroe d3a1524168 Merge pull request #23 from programble/feature/dyn-struct
Providers as values
2017-08-23 14:44:01 -04:00
Curtis McEnroe 80257f236a
Treat providers primarily as values 2017-08-23 14:09:05 -04:00
PoiScript 277898f08f Change all chrono::UTC to chrono::Utc 2017-08-22 23:14:10 +08:00
PoiScript 18106c2e0c Update Chrono 0.4 2017-08-22 22:57:50 +08:00
Matthew Scheirer f1390ce8a5 Make provider pub so consumer can access it, and don't require all providers to be default 2017-08-18 23:50:10 -04:00
Matthew Scheirer f44a638568 add with_provider to construct clients with complex providers 2017-08-18 21:08:44 -04:00
Matthew Scheirer 179532e061 Support dynamic providers 2017-08-18 18:55:13 -04:00
Curtis McEnroe c6b544e444
Clean up https in crate doc examples 2017-06-05 22:24:24 -04:00
Curtis McEnroe 80a7a02050
Style cleanup 2017-06-04 20:22:29 -04:00
Curtis McEnroe 62e8d11cb6
Replace rustc_serialize with serde 2017-06-04 19:53:04 -04:00
mayah 0cf32540f7 Fix cargo.toml 2017-06-04 12:06:49 +09:00
Curtis McEnroe 00babef32a
Update hyper 0.9.0, url 1.1.0 2016-05-22 16:52:58 -04:00
Curtis McEnroe 2b6f159aa8
Add google redirect URI constants 2016-05-22 15:58:16 -04:00
Curtis McEnroe 4a88c8779a Move serde support to a (default) feature 2016-03-12 20:07:49 -05:00
Curtis McEnroe 0132a85be2 Return Url from Client::auth_uri
Fixes #10.
2016-02-27 19:48:41 -05:00
Curtis McEnroe ac749b941c Add Google Web Provider 2016-02-27 19:17:55 -05:00
Curtis McEnroe 3125a61b0c Add Expiring Lifetime 2016-02-27 19:13:47 -05:00
Curtis McEnroe 9ae0feccc8 Rename Expiring to Refresh 2016-02-27 19:11:01 -05:00
Curtis McEnroe 93ac962b32 Rename Google provider to google::Installed 2016-02-27 19:09:58 -05:00
Curtis McEnroe 6187798a24 Update serde 0.7.0 2016-02-27 14:39:43 -05:00
Curtis McEnroe 0e9cb14231 Fix clippy lints 2016-02-23 15:50:01 -05:00
Curtis McEnroe c6aec754c3 Take String in Client::new 2016-01-28 21:54:14 -05:00
Curtis McEnroe ad23733ce4 Make Client fields public 2016-01-28 21:20:03 -05:00
Curtis McEnroe 954975732b Implement Debug, Clone, PartialEq, Eq for Client 2016-01-28 21:16:27 -05:00
Konstantin Stepanov d08e71760b accept http client as a reference to *_token() methods 2016-01-28 11:19:41 -05:00
Konstantin Stepanov 52376a27fc credentials_in_body applies to all token request (fixes #6) 2016-01-28 14:42:18 +03:00
Curtis McEnroe 6808f6bada Add Serde to "Persisting tokens" documentation 2016-01-25 23:14:11 -05:00
Curtis McEnroe 3cf2af8609 Test serde de/serialization of tokens 2016-01-25 23:06:44 -05:00
Curtis McEnroe ba5b74c698 Implement Serialize and Deserialize for Bearer 2016-01-25 22:50:15 -05:00
Curtis McEnroe bdd3cd8a68 Implement Serialize and Deserialize for Expiring 2016-01-25 22:23:16 -05:00
Curtis McEnroe 99c7481698 Implement Serialize and Deserialize for Static 2016-01-25 20:52:55 -05:00
Curtis McEnroe b70befc39d Add associated constant notes to Provider docs 2016-01-25 20:28:56 -05:00
Konstantin Stepanov 22123533ba optionally pass credentials in request body 2016-01-26 00:50:14 +03:00
Curtis McEnroe 10775d0823 Derive Clone, Copy, PartialEq, Eq wherever possible 2015-12-30 02:57:02 -05:00
Curtis McEnroe c0da5aa016 Update examples for Client reexport 2015-12-25 20:23:48 -05:00
Curtis McEnroe 6a07e0f9d5 Add crate documentation and examples 2015-12-25 17:52:47 -05:00
Curtis McEnroe 0dace6bb6a Test Expiring encode and decode 2015-12-25 17:46:38 -05:00
Curtis McEnroe f2fed3726d Derive or impl Encodable and Decodable for tokens 2015-12-24 16:15:18 -05:00
Curtis McEnroe cce6471a93 Implement Client::ensure_token 2015-12-24 15:49:48 -05:00
Curtis McEnroe f28d128c20 Reexport Token, Lifetime, Client, ClientError 2015-12-24 15:00:54 -05:00
Curtis McEnroe 43bc9f4e48 Implement Client::refresh_token 2015-12-24 14:37:42 -05:00
Curtis McEnroe 4fbe31693f Factor out Client::post_token 2015-12-24 14:30:07 -05:00
Curtis McEnroe d31ccaf473 Return ClientError from Client::auth_uri 2015-12-24 14:22:04 -05:00
Curtis McEnroe 03b178c89c Implement Client::request_token 2015-12-24 01:11:01 -05:00
Curtis McEnroe 8192d806f7 Add ClientError enum 2015-12-24 00:58:20 -05:00
Curtis McEnroe a8c1f7501e Test Bearer::from_response 2015-12-24 00:44:09 -05:00
Curtis McEnroe 552507478f Test Expiring::from_response 2015-12-24 00:31:58 -05:00
Curtis McEnroe 02a764720b Derive Eq for Expiring 2015-12-23 23:57:12 -05:00
Curtis McEnroe e09b0726fe Test Static::from_response 2015-12-23 23:54:56 -05:00