Sebastian Thiel
2cdf8bbf76
fix(API): overall improved error handling
...
* Return `Result<Token, Box<Error>>` type wherever feasible
* increment version to 0.3.5
* remove all usages of depreceated std items
2015-04-23 13:47:49 +02:00
Sebastian Thiel
84454d1736
fix(rustup): (abf0548b5 2015-04-15) (built 2015-04-15)
2015-04-17 06:39:16 +02:00
Sebastian Thiel
0222a19e9d
fix(version-up): v0.3.3
...
* hyper adjustments to deal with Client without type parameter
* adjust to changed crate name conventions, '-' are converted to '_'
Fixes #3
2015-04-08 16:40:48 +02:00
Sebastian Thiel
437a60959b
fix(rustup): switch to using io where possible
...
And adapt to hyper in the same moment
2015-03-07 13:35:21 +01:00
Sebastian Thiel
c227c161fd
feat(helper): full implementation of Authenticator
...
It's a generalized DeviceFlowHelper, able to operate on all flows.
It's also more flexible, as it will automatically refresh token as
required. That way, it lends itself to use in libraries which
want minimal hassle.
2015-02-28 09:37:45 +01:00
Sebastian Thiel
091f1c0759
feat(util): new MemoryStorage and NullStorage
...
Additionally, the Authenticator interface was scetched out.
It will replace the DeviceFlowHelper, and become the universal
do-it-all tool, as it supports storage as well.
2015-02-27 21:02:41 +01:00
Sebastian Thiel
3f965c8fea
feat(device): BorrowMut for client
2015-02-27 20:15:28 +01:00
Sebastian Thiel
88d4bf8c28
fix(refresh): BorrowMut for & and owned Client
...
That way, we are most flexible, at the cost of additional code.
2015-02-27 20:08:53 +01:00
Sebastian Thiel
4486bd595f
feat(refresh): &mut Client instead of Client
...
Breaking: This changes the existing API ... maybe Borrow can be used
to hide the type of client.
2015-02-27 19:58:06 +01:00
Sebastian Thiel
1f655b4eff
feat(common): Token type serialization support
...
This works by storing only timestamps.
Some convenience is provided as well.
2015-02-27 16:34:17 +01:00
Sebastian Thiel
aa030e8987
fix(common): AuthenticationType implements Str
...
Instead of an arbitrary `url()` method with the signature of
`to_slice()`
2015-02-27 15:06:50 +01:00
Sebastian Thiel
b23bb2459b
fix(example-auth): convert UTC to local time
...
Requires chrono 0.2.3 to work.
Also removed some warnings
2015-02-27 08:29:41 +01:00
Sebastian Thiel
2feddf4f56
initial commit after moving it out of yup/lib
2015-02-26 19:43:15 +01:00