Commit Graph

105 Commits

Author SHA1 Message Date
Lewin Bormann
9a334e2d21 chore(version): Release v3.0.2-beta 2019-06-22 22:14:14 +02:00
Lewin Bormann
33babd3d53 test(ServiceAccount): Add tests for error paths. 2019-06-21 19:32:49 +02:00
Lewin Bormann
e0f3298904 test(ServiceAccount): Add test with internal mockito web server. 2019-06-21 11:22:24 +02:00
Lewin Bormann
d3f1f87760 chore(version): Mark 3.0.0 as -alpha for publishing. 2019-06-13 21:46:40 +02:00
Lewin Bormann
9efad9b086 chore(version): Preemptively change version to 3.0.0 2019-06-13 15:27:41 +02:00
Lewin Bormann
58383f9a03 refactor(DeviceFlow): Make DeviceFlow work with Futures 2019-06-12 18:43:30 +02:00
Lewin Bormann
59b2b03b7d rewrite(serviceaccount): Rewrite ServiceAccountAccess to use futures.
Also add example/test to check if obtaining tokens using JWTs works.
2019-06-12 13:50:56 +02:00
Lewin Bormann
c2fbee4dc8 rewrite(installed): Make the InstalledFlow asynchronous with futures. 2019-06-11 23:29:12 +02:00
Lewin Bormann
db4077983f cleanup(openssl): Remove openssl dependency 2019-06-09 08:34:25 +02:00
Lewin Bormann
a7262ea7e3 chore(version): Publish comma fix for nightly rust in 2.0.1 2019-05-26 20:19:24 +02:00
Lewin Bormann
126c7cf32f chore(version): 2.0.0-pre -> 2.0.0 2019-05-26 11:12:26 +02:00
Guy Taylor
9f7f3c3b95 Upgrade to Hyper v0.12
This upgrade Hyper to v0.12 and updats to code to work for it. It has
being done with the minimum code change and so the logic is still
aukward for the futures model. This should be addressed in later commits
but I did not want to compilcate an already large commit.
2019-05-26 11:08:32 +02:00
Guy Taylor
e0c05210c1 Update version from 1.x to 2.x
Update version number and docs as the move to Hyper v0.12 will cause a
breaking change to consumers of this lib.
2019-05-26 11:04:32 +02:00
Lewin Bormann
0da0ff247b chore(version): Publish version 1.0.11 2019-02-12 06:20:10 +01:00
Lewin Bormann
4243ea8d41 chore(version): Version 1.0.10 2019-02-12 06:19:35 +01:00
Lewin Bormann
1ae13ca517 Merge pull request #82 from ignatenkobrain/patch-2
chore: Update itertools to 0.8
2019-02-11 19:59:29 +01:00
Igor Gnatenko
df5495879d chore: Update itertools to 0.8 2019-02-10 17:58:37 +01:00
Igor Gnatenko
0f93e5e915 chore: Update base64 to 0.10 2019-02-10 16:56:53 +01:00
Jamie Turner
20810e32d5 Add a no-openssl feature.
Recently, commits were made to remove support for using rustls/ring
in lieu of OpenSSL to avoid having to add those as dependencies in
environments where OpenSSL already exists.

However, yup-oauth2 is being used in some environments where
*OpenSSL* doesn't exist. So, retaining the option to build
it with an openssl-free stack is key.

Note, the change to hyper-native-tls is fine and actually
unrelated, because this is often happening on Windows or
Mac enviornments, where the stack that will link to is
*not* necessarily OpenSSL either.

For example, the particular breakage that prompted this
CR is a build of yup-oauth2 on iOS. In that environment,
hyper-native-tls uses Apple's Security Framework,
but OpenSSL libraries are not actually present on all
devices/simulator environments. So a link against
a mix of Security Framework and rustls make sense,
there.

Also, update to a newer version of rustls/ring while we're at it.
2019-01-04 12:54:08 -08:00
Jamie Turner
ab4b2c2fd4 Rust 2018 edition modifications. 2019-01-04 12:43:19 -08:00
Lewin Bormann
f865ffd5fe chore(version): 1.0.9
For new TLS dependency.
2018-10-07 13:59:53 +02:00
edelangh
2e1bbf761c Update hyper-native-tls from 0.2 to 0.3 2018-10-03 15:04:14 +02:00
Lewin Bormann
80ffb749fc bump version -> 1.0.8 2018-07-27 20:08:54 +02:00
Igor Gnatenko
3163be984d deps: rustls → openssl
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 22:51:51 +02:00
Igor Gnatenko
9b5bbf5459 deps: hyper-rustls → hyper-native-tls
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 22:51:37 +02:00
Igor Gnatenko
78cefeab47 deps: update url to 1
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 22:50:45 +02:00
Igor Gnatenko
e634d3f139 deps: update chrono to 0.4
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 22:47:52 +02:00
Igor Gnatenko
35fc95b066 deps: update itertools to 0.7
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 22:47:37 +02:00
Igor Gnatenko
b7e9822052 deps: update base64 to 0.9
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 22:47:22 +02:00
Lewin Bormann
ac8eb5bacb chore(version): Bump version -> 1.0.7 2018-06-02 19:01:26 +02:00
Martell Malone
f6d0fa0260 feat(jwt): use rustls and remove openssl
This removes the need for the remaining C interfaces.
Building any rust library with openssl adds a bunch
of depends such as foreign types via ffi and pkgconfg.
You are also required to have a prebuilt openssl.
Cross building and keeping up to date should be easier
with a pure rust implementation.
2017-06-26 16:29:56 +01:00
Martell Malone
112cc12f0e fix(version): bump rustls to 0.6.1
This bumps rustls to 0.6.1 which bumps webpki-roots.
We need this because the current version of webpki 0.8.0
has been removed from crates.io.
I created the 0.6.x rustls for hyper 0.10 support.
In future we should upade to hyper 0.11 which is rusls 0.8.0+
2017-06-22 14:29:39 +01:00
Narfinger
4afaa75c23 chore: update serde version 2017-06-01 23:17:09 +09:00
Brian Smith
22a3076924 Update dependencies.
The current Git master doesn't build with Rust 1.17 because the
version of Rustls used on master doesn't built with Rust 1.17.

* Update the base64 dependency to ensure the version with a buffer
overflow fix is used.

* Update hyper-rustls to one that uses a version of Rustls that builds
with Rust 1.17, and that uses *ring* 0.9+, to ensure there are no
problems with accidentally linking multiple versions of *ring*, to make
the build easier to set up (especially on Windows), and to keep things
working once *ring* 0.7.* gets yanked.

* Update the rust-openssl dependency while we're at it.
2017-05-09 10:42:32 -10:00
Lewin Bormann
076b943768 chore(version): Bump -> 1.0.5 2017-02-04 17:05:25 +01:00
Lewin Bormann
9908ab287b chore(deps): Add hyper-rustls to Cargo.toml. 2017-02-04 17:03:47 +01:00
Sebastian Thiel
cb17aa6298 chore(version): v1.0.4
Update changelog as well.

You can use
`clog --patch -c changelog.md`
to auto-update based on commit messages.
2017-02-03 06:55:17 +01:00
Sebastian Thiel
59584b240e imp(serde):use proc_macros and serde-derive
With Rust 1.15, proc macros have been stabilized. Therefore
custom build scripts are not required anymore.

This commit removes all the previous machinery and the
need for nightly.
2017-02-03 06:40:00 +01:00
Lewin Bormann
d4ebbc47b2 chore(language): Sort imports and migrate from deprecated types.
std:#️⃣:SipHasher is not std::collections::hash_map::DefaultHasher
(really!?).
Imports were unordered.
2017-01-31 19:27:50 +01:00
Lewin Bormann
567ff12cd4 fix(deps): Fix dependency problems and openssl test failure.
Sigh, #51 again.
2017-01-31 18:54:07 +01:00
Lewin Bormann
11e2b5b983 revert(openssl): Revert #51; it introduces a second version of openssl 2017-01-30 19:20:00 +01:00
Martell Malone
fe0a094b45 fix(openssl): Update to 0.9.x
This also updates hyper to 0.10.x because it uses openssl
2017-01-26 10:56:47 +00:00
Lewin Bormann
121eeb1388 chore(docs): Switch from self-hosted to docs.rs documentation
(#49)
2016-11-06 10:05:54 +01:00
Lewin Bormann
cbc7543082 chore(version): Bump to 1.0.1 in order to fix links in Cargo.toml 2016-10-22 16:50:12 +02:00
Sebastian Thiel
3b33164c37 docs(links): link from byron/ to dermesser/
The only link not working just yet is coveralls, which
apparently needs a login by the owner and minor configuration
to work (e.g. webhooks).

Also please note that the Cargo.toml has changed to fix the
documentation link. It would need a re-publish to fix it appears.
2016-10-22 10:58:17 +02:00
Sebastian Thiel
11baf2f712 fix(serde): use serde_derive
serde_macros is no longer maintained and will eventually
fail on nightly.
Also in a hopefully not-so-distant future, we will be able
to use macros 1.1 in stable, and thus get rid of the
complication required for the hybrid approach.
2016-10-09 16:38:52 +02:00
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