Commit Graph

207 Commits

Author SHA1 Message Date
Curtis McEnroe 527ab2deed Add bearer token type 2015-12-21 22:07:52 -05:00
Curtis McEnroe 40e428f5e9 Add token trait abstraction explanation 2015-12-21 21:44:05 -05:00
Curtis McEnroe bfc17a3020 Add token traits 2015-12-21 21:40:38 -05:00
Curtis McEnroe ac156bc7b4 Begin rewrite 2015-12-21 21:31:14 -05:00
Curtis McEnroe fcd1945dba Move providers to types 2015-12-01 21:36:51 -05:00
Curtis McEnroe 7ca874de6b Tweak example GitHub redirect URI 2015-12-01 19:10:49 -05:00
Curtis McEnroe 21facd2354 Add imgur support 2015-12-01 19:10:33 -05:00
Curtis McEnroe 7bdf0a7657 Version 0.4.0 2015-12-01 00:04:40 -05:00
Curtis McEnroe ceee4c7e21 Add AccessToken::to_bearer_header method 2015-12-01 00:03:37 -05:00
Curtis McEnroe 83704cb5ba Separate Client constructors and methods 2015-11-30 23:25:15 -05:00
Curtis McEnroe 9b309f5697 Make token_type an enum 2015-11-30 23:18:19 -05:00
Curtis McEnroe 714089c683 Remove unnecessary lifetime parameters 2015-11-30 22:35:09 -05:00
Curtis McEnroe f7082cc962 Version 0.3.0 2015-11-30 22:08:25 -05:00
Curtis McEnroe c088b96f0d Split Token into AccessToken, RefreshToken, TokenPair 2015-11-30 21:55:07 -05:00
Curtis McEnroe 1441cbfb10 Version 0.2.1 2015-11-29 16:46:52 -05:00
Curtis McEnroe 173c1ced53 Bump hyper 0.7.0 2015-11-29 16:46:31 -05:00
Curtis McEnroe bb17bf90d5 Documentation tweak 2015-11-29 16:03:46 -05:00
Curtis McEnroe efe40b6173 Version 0.2.0 2015-11-29 15:57:15 -05:00
Curtis McEnroe 6ed10b58d0 Document persisting tokens 2015-11-29 15:54:53 -05:00
Curtis McEnroe 57af517929 Derive PartialEq, Eq for Token 2015-11-29 15:54:21 -05:00
Curtis McEnroe b5a56ff97e Implement Encodable and Decodable for Token 2015-11-29 15:36:12 -05:00
Curtis McEnroe e89146a3fd Version 0.1.1 2015-11-28 23:42:04 -05:00
Curtis McEnroe 353f3509f0 Derive Debug and Clone where possible 2015-11-28 23:38:59 -05:00
Curtis McEnroe efbf433025 Fill in documentation 2015-11-28 23:33:58 -05:00
Curtis McEnroe 40e2916343 Add examples to crate root 2015-11-28 22:59:12 -05:00
Curtis McEnroe acb219afad Revert "Build examples on Travis"
This reverts commit 21973b41bd.
2015-11-28 22:58:16 -05:00
Curtis McEnroe 21973b41bd Build examples on Travis 2015-11-28 22:54:24 -05:00
Curtis McEnroe 7e4a0684bf Add Crates.io and Travis CI badges 2015-11-28 22:35:12 -05:00
Curtis McEnroe 41b8d1a469 Add Travis configuration 2015-11-28 22:29:36 -05:00
Curtis McEnroe 31343875ce Version 0.1.0 2015-11-28 21:50:58 -05:00
Curtis McEnroe 4b1edd3145 Add README 2015-11-28 21:43:41 -05:00
Curtis McEnroe f718529298 Use where for Client constructors 2015-11-28 19:18:20 -05:00
Curtis McEnroe 2ac97c61ab Implement Client::refresh_token 2015-11-28 18:40:34 -05:00
Curtis McEnroe 6da1277507 Factor out auth_header and accept_header 2015-11-28 18:12:43 -05:00
Curtis McEnroe 91dd81690d Handle errors 2015-11-28 18:07:01 -05:00
Curtis McEnroe 75d309ad0c Add OAuth2Error 2015-11-28 17:20:37 -05:00
Curtis McEnroe 2eae2724b6 Move TokenResponse out of request_token 2015-11-28 16:56:33 -05:00
Curtis McEnroe a7e255b66c Move hyper client to Client struct 2015-11-28 16:56:13 -05:00
Curtis McEnroe 593a08e017 Factor out Client site constructors with macro 2015-11-28 16:40:31 -05:00
Curtis McEnroe cc8645da8f Complete examples 2015-11-28 15:21:16 -05:00
Curtis McEnroe 10823a3d81 Implement Client::request_token 2015-11-28 15:20:59 -05:00
Curtis McEnroe 0592eba8a1 Derive Debug for Token 2015-11-28 15:20:51 -05:00
Curtis McEnroe 8e0d91bb24 Add Json variant to Error 2015-11-28 14:44:01 -05:00
Curtis McEnroe da04563602 Depend on rustc-serialize 2015-11-28 14:43:42 -05:00
Curtis McEnroe 096a9da639 Impl Display and Error for Error 2015-11-28 14:39:18 -05:00
Curtis McEnroe 82958bab00 Return Result from Client::auth_uri 2015-11-28 13:23:38 -05:00
Curtis McEnroe 52f73b4836 Add Error and Result types 2015-11-28 13:21:41 -05:00
Curtis McEnroe 85acefbb6d Depend on hyper 2015-11-28 13:12:35 -05:00
Curtis McEnroe 38801064a4 Add Token struct 2015-11-28 13:09:43 -05:00
Curtis McEnroe 8484ee48e6 Add Client::github constructor 2015-11-28 12:52:18 -05:00