Lewin Bormann
01b933a1c6
chore(version): Bump version to 1.0.0
2016-10-09 09:56:23 +02:00
Lewin Bormann
eb6267a2dd
fix(deps): Pin dependencies to specific (major) versions
...
Amends #24
2016-10-01 15:30:09 +02:00
Lewin Bormann
a4d60e754b
fix(deps): Use small base64 crate instead of rustc-serialize
2016-09-28 20:10:53 +02:00
Lewin Bormann
1c1880cfe7
feat(service_account): Implement token source for service accounts
...
Tested with unit tests and against Google OAuth.
2016-09-20 20:29:19 +02:00
Sebastian Thiel
e1a5fc4924
chore(version-up): v0.6.3
2016-09-11 09:42:04 +02:00
Sebastian Thiel
efaadd5bac
chore(Cargo): upgrade serde to latest version
...
That way, nightly builds will work once again.
2016-09-11 09:40:49 +02:00
Sebastian Thiel
cd2b1d56a9
chore(Cargo): make @dermesser an author officially
...
Thanks for all your contributions, it's the least I can do
to make it a bit more official.
If you don't like this, please let me know.
2016-09-11 09:39:19 +02:00
Sebastian Thiel
7a907eb318
fix(dependencies): use latest version of serde_codegen
...
In the way it's meant to be used, which means it uses it's
own version of syntex, to assure it doesn't clash anymore in
unforseen ways.
2016-07-17 11:36:21 +02:00
Sebastian Thiel
2fe535c9d6
chore(version-up): v0.6.1
2016-05-24 15:22:11 +02:00
Sebastian Thiel
a9d0b06925
chore(version-up): v0.6.0
...
Comes with DiskStorage and new Flow !!!
2016-05-20 15:26:38 +02:00
Sebastian Thiel
31bad1ae53
chore(features): rename with_syntex to with-syntex
...
This makes the name similar to the one used in quasi, aster, serde
and the likes.
2016-05-20 14:57:09 +02:00
Sebastian Thiel
a3bc7e88b5
chore(serde): upgrade to latest version for stable
...
Now it builds with stable too, it appears.
2016-05-20 12:15:23 +02:00
Sebastian Thiel
22bb255a55
fix(dependencies): work with latest dependencies on nightly
...
Stable doesn't quite work yet due to the cargo issue further
described [here][cargo-issue]
[cargo-issue]: https://github.com/rust-lang/cargo/issues/2064
2016-05-20 08:57:06 +02:00
Sebastian Thiel
eafa1b22fe
Merge branch 'installed-flow' of https://github.com/dermesser/yup-oauth2 into all-upgrades
2016-05-20 07:55:33 +02:00
Lewin Bormann
4e1d9bd750
fix(dependencies): hyper also broke us
...
The Url::query_pairs() function returns a different type now.
2016-04-27 19:19:20 +02:00
Lewin Bormann
5c4e318842
fix(dependencies): use url = 0.5; the bump to 1.0 broke us
...
Fixes #23 .
2016-04-25 19:39:11 +02:00
Sebastian Thiel
2aa95c0500
fix(serde): go back to serde 0.6 ( #18 )
...
That way, google-apis-rs can compile once again.
If not done, yup-oauth ends up being compiled with
an older serde (the one of google-apis-rs, it seems), even
though its code was generated by a possibly newer serde.
Signed-off-by: Sebastian Thiel <sthiel@thoughtworks.com >
2016-04-10 13:10:40 +02:00
Sebastian Thiel
78d45ad1cb
chore(version-up): v0.5.5
2016-02-07 10:18:41 +01:00
Sebastian Thiel
ea56379d85
chore(version-up): v0.5.4
2016-02-07 10:11:06 +01:00
Sebastian Thiel
c18ae07bbb
imp(duration): use std::time::Duration everywhere
...
This gets rid of the time crate, which was necessary only while Duration wasn't stable
in std.
2016-02-07 10:09:36 +01:00
Corey Richardson
e7fd590180
Relicense to dual MIT/Apache-2.0
...
Closes https://github.com/Byron/yup-oauth2/issues/14
2016-01-10 21:53:51 -05:00
Sebastian Thiel
59bbde3be4
chore(version-up): v0.5.3
...
Versions were chosen to allow for maximum flexibility
for users of this library, even if this breaks at compile time
thanks to incompatibilities in dependencies.
Rather that, than cargo claiming that it cannot use
a certain version.
Of course, once everything is >= 1.0, one can change to
standard semver compatiblity.
2015-12-24 15:12:24 +01:00
Sebastian Thiel
cbfa909edf
chore(version-up): v0.5.2
2015-08-08 11:46:54 +02:00
Sebastian Thiel
a169d9610d
chore(serde): update to serde 0.5.0
...
Serde move all json code into a separate crate, which we are now pulling
in separately.
2015-08-08 10:40:14 +02:00
Sebastian Thiel
624ec51e8f
chore(build.rs): moved into src/ dir
2015-06-24 16:34:53 +02:00
Sebastian Thiel
4a7062dd39
chore(versionup): v0.5.0
2015-06-18 19:44:09 +02:00
Sebastian Thiel
9b2f9e77be
feat(syntex): basic infrastructure
...
It doesn't yet work on nightly due to a panic in
https://goo.gl/RyM4GT
Might have something to do with me being on nightly,
and some cargo-related hickoup.
2015-05-26 14:41:31 +02:00
Sebastian Thiel
598f5ed496
chore(cargo):update to latest hyper/yup-hyper-mock
...
This fixes the macro issues that caused us so much trouble
2015-05-18 10:46:38 +02:00
Sebastian Thiel
94d5b7c2ca
chore(cargo): attempt to use latest hyper
...
For general compatiblity to rest of projects, trying to get rid of
local overrides and thus document the version needed for compiltation
to work.
However, tests fail as macros coming in from yup-hyper-mock are
still the 'old' version for some reason.
[skip ci]
2015-05-12 17:15:28 +02:00
Sebastian Thiel
f05078c1bc
chore(versionup): to work with latest rustc
2015-05-11 10:30:48 +02:00
Sebastian Thiel
0a62d04476
fix(versionup): version == 0.4.4
...
* change log updated using clog
* updated clog config to help setting up new versions
2015-05-08 11:41:26 +02:00
Sebastian Thiel
a395fe892c
fix(JsonError): make error field non-optional
...
* to makes using the structure much easier.
* incremented version
Fixes #6
2015-05-02 09:06:57 +02:00
Sebastian Thiel
b08b239e88
fix(json): assure we understand json errors
...
We would actually fail to decode an error, and then assume it's a valid
result, unwrapping another failed attempt to decode the json string
returned by the server.
Cause seems to be that the json error structure now conains an
additional field, 'error_uri'.
* we removed a debug printing ... .
* incremented version
2015-05-01 19:39:57 +02:00
Sebastian Thiel
f95bb816f7
fix(TokenStorage): set() returns Result<(), _>
...
That we, we are conforming to the style postulated by the standard
library, which, if in doubt, should always be preferred.
Fixes #5
2015-04-30 17:08:31 +02:00
Sebastian Thiel
e05e5553e3
feat(serde): use serde instead of rustc_serialize
...
That way, we can pretty-print the respective application secret
strucures. This is primiarily of interest for the main client of this
library, namely Google APIs RS.
Version incremented.
Fixes #2
2015-04-30 14:18:44 +02:00
Sebastian Thiel
3ca51ccfe2
fix(rustup): 1.1.0-nightly (97d4e76c2 2015-04-27)
...
Also incremented version
2015-04-29 09:53:27 +02:00
Sebastian Thiel
727c1d801b
fix(rustup): replace sleep with sleep_ms
...
Now it works with the latest compiler. I wonder why I didn't notice
that before ... .
2015-04-26 21:13:45 +02:00
Sebastian Thiel
2a1247bae0
fix(common): remove obsolete marker trait
...
... and version-up right away :).
2015-04-26 20:50:27 +02:00
Sebastian Thiel
690bcdb627
fix(helper): unset stored token on refresh failure
...
Previously we would have no way of getting rid of invalid/revoked
tokens, which would render the application unusable unless the user
would delete the token manually.
Related to https://github.com/Byron/google-apis-rs/issues/79
2015-04-24 09:30:52 +02:00
Sebastian Thiel
1ce4147d54
fix(refresh): use correct URL for refresh flow
...
This also allowed us to simplify the API once again.
2015-04-23 17:24:20 +02:00
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
2489b81383
fix(update-dependencies): rustup + dep-up
...
* updated to rustc (be9bd7c93 2015-04-05)
* use latest hyper
The latter required us to deal with HttpError not being clonable
anymore.
2015-04-07 10:35:25 +02:00
Sebastian Thiel
feba2d0e5a
feat(header): Authorization Scheme for Oauth
...
Allows not natively use Oauth2 schemes with hyper Authorization headers.
Added support for serialization and parsing.
2015-03-22 11:55:05 +01:00
Sebastian Thiel
0710d310f8
feat(api_key): GetToken.api_key()
...
Allows to get API keys in case there is no known scope.
There might be alterations to this, as I am unsure how it's supposed
to be implemented.
2015-03-16 13:41:19 +01:00
Sebastian Thiel
3d1678daea
fix(rustup): update to latest rustc
...
rustc 1.0.0-nightly (3e4be02b8 2015-03-13) (built 2015-03-13)
2015-03-15 11:34:03 +01: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
fb0c3ff506
feat(auth): Authenticator support GetToken trait
...
This will allow its usage in generics, without having to provide
the 4 additional template types it usees.
2015-03-01 09:56:58 +01:00
Sebastian Thiel
fda2d62fa2
fix(cargo): version bump
...
Should probably have been done in 'next' branch.
Next time, maybe.
BREAKING: DeviceFlowHelper replaced with Authenticator
2015-02-28 14:09:32 +01:00