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
aedc9b6696
feat(common): ConsoleApplicationSecret
...
A simplel structure to help reading secret files obtained from
https://code.google.com/apis/console
2015-02-27 15:32:26 +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
646a94ac11
fix(device): DeviceFlowHelper fails by default ...
...
... in case there is a connection error.
Its purpose is to handle the device flow, not to retry if there are
more general problems, like connection errors. However, the user
may implement this differently in his delegate.
2015-02-27 10:39:30 +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