Commit Graph

205 Commits

Author SHA1 Message Date
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 34efa2fad0 Request and refresh token in Imgur example 2015-12-24 14:50:44 -05:00
Curtis McEnroe 0e9bbb80d9 Request token in GitHub example 2015-12-24 14:44:06 -05:00
Curtis McEnroe 33bcbd9790 Refresh token in Google example 2015-12-24 14:38:00 -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 cfa53d8b35 Request token in Google example 2015-12-24 01:11:14 -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
Curtis McEnroe 2bde28f1de Derive Eq for Static 2015-12-23 23:54:49 -05:00
Curtis McEnroe 2628759a2e Implement FromResponse for tokens 2015-12-23 23:46:21 -05:00
Curtis McEnroe 3aa66c2d30 OAuth2Error FromResponse tweak 2015-12-23 23:12:00 -05:00
Curtis McEnroe 3c32646ea4 Test OAuth2Error::from_response 2015-12-23 23:07:56 -05:00
Curtis McEnroe fbfb2fa284 Derive Eq for OAuth2Error 2015-12-23 23:07:46 -05:00
Curtis McEnroe db058fffdf Derive Eq for ParseError 2015-12-23 23:07:26 -05:00
Curtis McEnroe 228c732e2e Add JsonObjectHelper::get_string_option 2015-12-23 22:43:19 -05:00
Curtis McEnroe cb404df6d8 Implement FromResponse for OAuth2Error 2015-12-22 01:45:21 -05:00
Curtis McEnroe 71d147eb83 Add Json helpers 2015-12-22 01:45:12 -05:00
Curtis McEnroe 565ee93113 Implement From<&str> for OAuth2ErrorCode 2015-12-22 00:59:58 -05:00
Curtis McEnroe 225f156bb6 Add OAuth2Error 2015-12-22 00:54:39 -05:00
Curtis McEnroe dc513cab34 Implement Debug for Client
ಠ╭╮ಠ
2015-12-22 00:41:36 -05:00
Curtis McEnroe de9dea402d Add derivable Debug implementations 2015-12-22 00:34:06 -05:00
Curtis McEnroe 7dcc49da8d Enable extra lints 2015-12-22 00:30:09 -05:00
Curtis McEnroe 59874c36da Add FromResponse::from_response_inherit 2015-12-22 00:16:30 -05:00
Curtis McEnroe 7e3f77aa83 Rename client::response and make public 2015-12-22 00:08:34 -05:00
Curtis McEnroe bc9555c9b9 Add FromResponse trait and ParseError 2015-12-22 00:02:29 -05:00
Curtis McEnroe 557257e71d Add Imgur example 2015-12-21 23:36:04 -05:00
Curtis McEnroe f3cdd6142d Add GitHub example 2015-12-21 23:34:38 -05:00
Curtis McEnroe eb8d3ab7b0 Add Client::auth_uri example 2015-12-21 23:08:45 -05:00
Curtis McEnroe e7d099716d Add Client::auth_uri unit tests 2015-12-21 23:05:15 -05:00
Curtis McEnroe af0d3283d0 Add Google example 2015-12-21 22:53:45 -05:00
Curtis McEnroe a7710660c1 Implement Client::auth_uri 2015-12-21 22:50:41 -05:00
Curtis McEnroe 0496dbc8fd Add Client struct 2015-12-21 22:40:18 -05:00
Curtis McEnroe 3d8bd4eb1a Add Imgur provider 2015-12-21 22:31:47 -05:00
Curtis McEnroe cd66c77a94 Add GitHub provider 2015-12-21 22:28:48 -05:00
Curtis McEnroe c3e4d78ad3 Add Google provider 2015-12-21 22:25:50 -05:00
Curtis McEnroe af0b8bfe43 Add Provider trait 2015-12-21 22:22:05 -05:00
Curtis McEnroe 76dcc305f3 Add expiring token lifetime 2015-12-21 22:16:29 -05:00
Curtis McEnroe 397578840d Add static token lifetime 2015-12-21 22:13:44 -05:00
Curtis McEnroe 38d81ed931 RFC links tweak 2015-12-21 22:13:15 -05:00
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