Daniel Rodgers-Pryor
98ee92f8b2
Don't publish the ScopeSet struct
...
Just pass `&[&str]` into custom storage providers. The scopeset struct has a range of unnecessary internal features.
It's now also part of the interface for custom storage providers that the given scopes will be both unique and sorted.
The only slightly awkward thing is that there's no conventient way to expose a `scopes_covered_by` helper method (which almost all custom storage engines will need), but it's still included in the example code.
2021-03-25 21:08:12 +11:00
Daniel Rodgers-Pryor
384963e091
Revert mutable authenticator interface change
...
Instead, suggest using interior mutability (and RwLock in the example) to manage storage of token states. This makes it easier to share authenticators between threads.
2021-02-06 22:59:00 +11:00
Daniel Rodgers-Pryor
5ef498f801
Custom token storage
...
Allow users to build their own token storage system by implementing the `TokenStorage` trait. This allows use of more secure storage mechanisms like OS keychains, encrypted files, or secret-management tools.
Custom storage providers are Box-ed to avoid adding more generics to the API — the indirection cost will only apply if using a custom store.
I've added `anyhow` to allow easy handling of a wide range of errors from custom storage providers.
2021-02-06 22:59:00 +11:00
Lewin Bormann
00574f278b
Release v5.0.3
...
for #147 / #144
2021-02-05 09:03:53 +01:00
Lewin Bormann
6b773c4d7d
Merge pull request #144 from lyonbeckers/option_hyper_tls
...
Draft: feat: introduce an optional hyper-tls dependency, closes #143
2021-02-03 14:44:57 +01:00
Lyon Beckers
5b1facf7a0
Merge branch 'master' of https://github.com/lyonbeckers/yup-oauth2 into option_hyper_tls
2021-02-01 07:18:48 -07:00
Lyon Beckers
26db4b6efc
introduced a feature which allows the use of hyper-tls instead of hyper-rustls
2021-01-29 16:58:06 -07:00
Lewin Bormann
75e402412f
Release v5.0.2
...
Includes fix to #141
2021-01-29 21:47:05 +01:00
Lewin Bormann
28e27b6480
Merge pull request #142 from Shadow53/master
...
installed flow: support urls with existing query params
2021-01-29 21:46:00 +01:00
Michael Bryant
3ca0164908
fix lint
2021-01-25 14:13:42 -08:00
Michael Bryant
6c433a6fb5
installed flow: support urls with existing query params
2021-01-25 09:53:22 -08:00
Lewin Bormann
afec480587
Release v5.0.1 with stable Tokio
2020-12-29 08:39:58 +01:00
Lewin Bormann
864f918496
Merge pull request #138 from maximebedard/bump-tokio-0-3
...
Bump to tokio 1.0 and hyper 0.14
2020-12-27 09:05:14 +01:00
Maxime Bedard
cc2abadb3c
fmt
2020-12-26 22:14:57 -05:00
Maxime Bedard
07bc4803c0
update hyper-rustls to 0.22
2020-12-26 19:30:43 -05:00
Maxime Bedard
63b185b711
use released version of httptest
2020-12-24 16:37:35 -05:00
Maxime Bedard
c5bc3913d7
remove unecessary rt feature flag
2020-12-24 09:39:10 -05:00
Maxime Bedard
ec28689080
bump hyper=0.14, tokio=1.0, hyper-rustls, httptest
2020-12-24 09:31:18 -05:00
Lewin Bormann
b59c617027
Doc: Remove reference to DeviceFlowHelper to fix #140 .
...
Oh boy, that was removed in 2015...
2020-12-03 21:27:30 +01:00
Lewin Bormann
b7de2f8d60
Merge pull request #139 from mike-kfed/custom_flow_example
...
example showing howto implement a custom flow, here opening the
2020-11-20 14:25:20 +01:00
Michael Kefeder
adc99a10ec
example showing howto implement a custom flow, here opening the
...
default webbrowser with the oauth2 URL for the installed flow.
2020-11-16 09:52:08 +01:00
Maxime Bedard
4026d92cf6
Bump to tokio 0.3 and hyper 0.14
2020-11-12 20:31:19 -05:00
Lewin Bormann
be4faf944b
drive_example: Make example compile again. Fixes #134
2020-10-27 15:25:16 +01:00
Lewin Bormann
2f50876002
Release v4.1.3
2020-10-27 11:11:33 +01:00
Lewin Bormann
9bf40bef5b
Authenticator: Switch from keep_alive to pool_max_idle_per_host
2020-10-27 11:10:57 +01:00
Lewin Bormann
d193431465
Make two more application secret types Debug
2020-10-27 11:10:30 +01:00
Lewin Bormann
4660676073
Revert "Upgrade tokio -> 0.3: Bump version to v5.0.0"
...
This reverts commit e07bc6f471 .
Hyper and tokio 0.3 don't work together yet.
2020-10-20 17:47:39 +02:00
Lewin Bormann
e07bc6f471
Upgrade tokio -> 0.3: Bump version to v5.0.0
2020-10-20 16:28:46 +02:00
Lewin Bormann
55a8984c81
Another slight update to README
2020-10-18 22:42:14 +02:00
Lewin Bormann
c888d23d19
Add link to async-google-apis in README.
2020-10-17 20:08:10 +02:00
ggriffiniii
3d84ddd178
Merge pull request #132 from zauberpony/fix-claim-field-name
...
fix 'subject' name in service-account claim
2020-05-28 11:31:13 -07:00
Elmar Athmer
43c8a3d77d
fix 'subject' name in service-account claim
...
As indicated by
https://developers.google.com/identity/protocols/oauth2/service-account#httprest
the name for the subject-field inside the JWT claim needs to be named
'sub' (instead of 'subject').
This is relevant e.g. for the GSuite Admin Directory API.
2020-05-28 17:23:15 +02:00
Lewin Bormann
3221e8986a
chore(version): Publish v4.1.2
2020-05-01 20:36:01 +02:00
Lewin Bormann
6bd2c30337
Merge pull request #129 from GeorgeHahn/consumer-improvements
...
Expose default authenticator type
2020-05-01 20:35:41 +02:00
Lewin Bormann
dab93ff1e4
Merge pull request #130 from GeorgeHahn/update-deps
...
Update dependencies
2020-05-01 20:34:44 +02:00
George Hahn
4b1262933b
Update dependencies
2020-05-01 11:52:23 -05:00
George Hahn
b891e9e670
Expose default authenticator type
...
This allows downstream users to avoid a dependency on hyper
2020-05-01 11:25:25 -05:00
Lewin Bormann
6fe83abf61
chore(version): release 4.1.1 for #127
...
fixes #128
2020-04-29 18:16:07 +02:00
Lewin Bormann
fa3c53457f
Merge pull request #127 from abdul-rehman0/change-mutex-to-futures-aware-mutex
...
feat: Use futures-aware mutex
2020-04-07 17:10:20 +02:00
Abdul Rehman
09d1f05a00
feat: Use futures-aware mutex
2020-04-06 15:31:49 +05:00
Lewin Bormann
c5bad4c209
chore(version): Release 4.1.0
2020-03-17 10:55:25 +01:00
Lewin Bormann
a15d293fa6
Merge branch 'allow-token-refresh'
...
Fix #125
2020-03-17 10:44:27 +01:00
Lewin Bormann
35157400ad
chore(rustfmt): Run rustfmt
2020-03-16 19:15:14 +01:00
Lewin Bormann
1e492c7393
feat(refresh): Allow forcing Authenticator to refresh a token
...
On #125
2020-03-16 18:33:15 +01:00
Lewin Bormann
81ac154e36
docs(contributors): Add CONTRIBUTORS file
2020-02-20 09:52:34 +01:00
Lewin Bormann
c70956269b
chore(lint): Run rustfmt
2020-02-16 20:57:20 +01:00
Lewin Bormann
a80984d219
chore(version): Release 4.0.2
...
Update dependencies (#124 )
2020-02-15 20:04:14 +01:00
Lewin Bormann
59bbe8edb0
Merge pull request #124 from nagisa/updeps
...
chore(*): update the dependencies
2020-02-15 20:03:39 +01:00
Simonas Kazlauskas
05ee4a4cee
chore(*): update the dependencies
2020-02-06 23:20:26 +02:00
Lewin Bormann
d17bbb719c
chore(version): Release 4.0.1
2020-02-05 21:45:04 +01:00