Brandon Ogle
818d1c2eea
Remove redundant id_token field from struct initialization
2022-10-10 12:45:51 -07:00
Brandon Ogle
95df191358
Revert Token back to AccessToken, as TokenInfo can be used to retrieve id_token
2022-09-21 19:00:37 -07:00
Brandon Ogle
2d805cf19e
Merge branch 'nagisa/id_token' of github.com:nagisa/yup-oauth2 into nagisa-nagisa/id_token
2022-09-21 18:51:59 -07:00
Lewin Bormann
a311cfc3e0
Merge pull request #183 from chrisderock/master
...
added access token authenticator
2022-09-07 10:32:42 +02:00
toepp
f35eb186d6
removed commented imports and added a better description
2022-08-31 11:03:31 +02:00
toepp
7c557a5d03
forgot to add the file itself
2022-08-29 10:20:18 +02:00
chritoep
110c65ab07
added access token authenticator
2022-08-26 08:50:28 +02:00
Lewin Bormann
dcc35ac2e0
Release v7.0.1
2022-06-19 17:49:03 -07:00
Lewin Bormann
c69fffac28
for #180 : allow HTTP requests in default hyper client.
...
If an attacker could manipulate URLs for token retrieval etc., they
could wreak considerably more havoc than a downgrade attack.
2022-06-09 20:14:44 -07:00
Lewin Bormann
24f91d697c
Release v7.0.0
...
for #177 including #178 : Update Authenticator to accept clients with custom connectors
2022-05-27 11:16:31 -07:00
Lewin Bormann
1ace664651
Merge pull request #178 from kylegentle/master
...
feat(Authenticator client): Support custom connectors
2022-05-27 20:10:24 +02:00
Kyle Gentle
c76ae18224
feat(Authenticator client): Accept custom connectors
...
Update Authenticator to accept clients with custom connectors, rather
than depending on the sealed hyper::client::connect::Connect trait, as recommended by hyper: https://docs.rs/hyper/0.13.8/src/hyper/client/connect/mod.rs.html#256-258
Closes #177 .
2022-05-22 16:29:02 -04:00
Lewin Bormann
253528a1fe
Bump version to 6.7
...
Includes #176 and #174
2022-05-21 12:27:53 -07:00
Lewin Bormann
1a32e1af6f
Document ServiceAccountAuthenticator inline
2022-05-21 09:18:00 -07:00
Lewin Bormann
33bc9b98e5
Merge pull request #176 from rnarubin/service_account_panic
...
Remove file IO panic in ApplicationDefaultCreds flow
2022-05-21 09:08:56 -07:00
Renar Narubin
aacb97d76c
Remove file IO panic in ApplicationDefaultCreds flow
...
The `from_environment` function in
`ApplicationDefaultCredentialsAuthenticator` had an `unwrap` call on an
io::Result after reading the service account key from file. File
operations are inherently fallible, and panicking on such a failure is
generally a bad convention compared to propagating the IO error.
Propagating that error from the `from_environment` function is not
practical however, because the returned Result type does not include IO
errors, and changing the function signature would be semver
incompatible.
This change instead defers reading the key file to a later function
call. Now `from_environment` only reads the value of the
`GOOGLE_APPLICATION_CREDENTIALS` into a PathBuf, and a later call to
`ServiceAccountFlow::new` will actually read the file. That constructor
already returns an io::Result, so folding the read error into it is
possible, and none of the changes impact public items so it's all
semver-compatible.
2022-05-18 21:05:37 -07:00
Lewin Bormann
29a72447f6
Merge pull request #174 from DavidS/patch-2
...
docs: minor typo in docstring
2022-05-07 19:21:26 -07:00
David Schmitt
69e3a0289b
docs: minor typo in docstring
2022-05-07 16:39:44 +01:00
Lewin Bormann
b46a307481
Release v6.6.0
...
Includes:
#173 - upgrade rustls.
Breaks:
Application default's `with_client()` method has its argument
order changed to match all other methods (client last).
2022-04-18 18:53:43 -07:00
Lewin Bormann
fb658f6d10
Merge pull request #173 from djc/rustls-0.20
...
Upgrade rustls and related dependencies
2022-04-18 18:44:18 -07:00
Lewin Bormann
378dca1148
rustls upgrade: supply correct client in test cases
2022-04-18 18:39:57 -07:00
Dirkjan Ochtman
32b6d8fa63
Allow testing without https
2022-04-11 11:38:25 +02:00
Lewin Bormann
bfe622eaaf
clean-up: fix most clippy warnings
2022-04-08 23:35:15 -07:00
Lewin Bormann
986bda2465
Merge branch 'pr165'
...
for #165
2022-04-08 23:27:45 -07:00
Lewin Bormann
23c8053d4a
for #165 : update refresh flow test
2022-04-08 23:27:22 -07:00
Lewin Bormann
4a0c527d48
Release v6.5.1: Fix visibility of authorized_user module
2022-04-07 17:48:36 -07:00
Dirkjan Ochtman
f9c59bb743
Upgrade rustls and related dependencies
2022-04-06 11:22:05 +02:00
Lewin Bormann
8762896a4c
Release v6.5.0 with #170
2022-04-01 20:12:52 -07:00
Lewin Bormann
95d46f53b8
Also feature-gate doc test for #170
2022-03-22 18:31:39 +01:00
Lewin Bormann
35a3117047
Fix feature gating of function for #170
2022-03-22 18:24:31 +01:00
Lewin Bormann
3c93bd1dc4
Merge pull request #170 from FEC-bendingspoons/master
...
Add authorized user authenticator
2022-03-22 18:18:08 +01:00
Lewin Bormann
3797ff773a
Release v6.4.0
...
Includes #172
2022-03-20 09:20:50 +01:00
Lewin Bormann
f7e2238f3e
Merge pull request #172 from birdsarah/replace_chrono_with_time
...
Replace chrono with time
2022-03-19 22:56:59 +01:00
Sarah Bird
2128772d88
Replace chrono with time
2022-03-11 19:39:11 -06:00
Federico Cergol
e9cb1e43eb
fix: service_account feature flag placement
2022-03-09 18:31:10 +01:00
Federico Cergol
b4c5ef8527
feat: add authorized user authenticator
2022-03-05 16:31:12 +01:00
Lewin Bormann
4b414ca775
Minor fix in doc test: Publish v6.3.1
2022-02-24 13:43:10 +01:00
Lewin Bormann
6aca7fbae5
for #169 : also fix a doc test
2022-02-24 13:42:09 +01:00
Lewin Bormann
3e6d260e97
Publish version v6.3.0
2022-02-24 13:38:11 +01:00
Lewin Bormann
48ea463204
Merge pull request #169 from cataggar/spectre
...
more #[cfg(feature = "service_account")]
2022-02-24 13:36:25 +01:00
Lewin Bormann
92fd0861d5
for #169 : add builds without service_account to GitHub Actions matrix
2022-02-24 13:35:55 +01:00
Cameron Taggart
eb2d09870b
more #[cfg(feature = "service_account")]
2022-02-24 07:23:09 -05:00
Lewin Bormann
4095db3b3e
Fix typo in github actions configuration for #168
2022-02-22 20:20:49 +01:00
Lewin Bormann
43e31e3c32
Update feature matrix for github test action configuration for #168
2022-02-22 20:16:38 +01:00
Lewin Bormann
9b81a7183e
Make rustls dependency optional by introducing "service_account" feature
...
Now, service_account code must be (implicitly) enabled.
Asked for in feature #168
2022-02-22 20:10:39 +01:00
Lewin Bormann
d61ab104e4
Release v6.2.0
...
Including
* #166 Add ID token support
* #167 feat(helper): add parse_service_account_key() function
Thank you @bjornwein!
2021-12-27 11:21:50 +01:00
Lewin Bormann
65e7fee104
Merge pull request #167 from bjornwein/parse_service_account_key
...
feat(helper): add parse_service_account_key() function
2021-12-27 11:21:19 +01:00
Lewin Bormann
a7301efd84
Merge pull request #166 from bjornwein/master
...
Add ID token support
2021-12-26 19:55:47 +01:00
Björn Weinehall
da648e9f39
feat(helper): add parse_service_account_key() function
...
Add parse_service_account_key() in line with parse_application_secret().
Can be used to e.g. pass the service account key through an env variable.
2021-12-21 11:06:26 +01:00
Björn Weinehall
8829599c8c
Amend tests for the ID token field
2021-12-21 10:42:59 +01:00