Releases: ramosbugs/oauth2-rs
Releases · ramosbugs/oauth2-rs
4.2.2
Bug Fixes
- Fix PKCE documentation link (See ramosbugs/openidconnect-rs#76)
4.2.1
4.2.0
4.1.0
New features
- Add
add_scopes
convenience methods to request objects (#138) - Add
set_redirect_uri
method toCodeTokenRequest
(#144)
Bug fixes
- Await the given sleep method in
DeviceAccessTokenRequest::request_async
(#152) - Fix curl client implementation (#147)
- Update docs to reference current version
Other changes
4.0.0
Changes since 4.0.0-beta.1
- Fix a couple of doc comments and an error message to say
failed
instead ofErrored
.
Summary of changes since 3.0.0
Breaking changes
- Raise minimum supported Rust version (MSRV) to 1.45.
- Upgrade
reqwest
to 0.11 and rename feature flag toreqwest
. This upgradestokio
to 1.0 and removes support for both thereqwest-010
andreqwest-09
feature flags. - Drop support for
futures
0.1 and remove thefutures-01
andfutures-03
feature flags; only async/await andfutures
0.3 are now supported (without requiring any feature flags). - Eliminate
Async*
traits and move therequest_async
methods to the underlying*Request
structs - Migrate public API from
http
0.1 to 0.2. - Return error types that implement
std::error::Error
instead offailure::Fail
. - Expose a
serde_path_to_error::Error<serde_json::Error>>
in theRequestTokenError::Parse
variant instead of aserde_json::Error
to make JSON deserialization errors easier to diagnose. - Add
#[non_exhaustive]
attribute toAuthType
to support non-breaking additions in the future.
New features
- Add support for OAuth 2.0 Device Authorization Grant.
- Add support for OAuth 2.0 Token Revocation (RFC 7009) (#122).
- Add support for OAuth 2.0 Token Introspection.
- Add support for the
plain
(plaintext) PKCE verifier when the (non-default)pkce-plain
feature flag is enabled. Use of this feature is discouraged for security reasons. - Support wasm32 targets (#120).
- Add
ureq
HTTP client (#119).
Other changes
- Have
reqwest
client userustls-tls
by default instead of native TLS. This behavior can be overridden using thenative-tls
feature flag. - RUSTSEC-2016-0005: replace
rust-crypto
withhmac
in dev-dependencies
4.0.0-beta.1
This is the first beta release for the 4.0 major version. No further breaking changes are expected until the next major version.
Breaking Changes
- Add
rustls-tls
(default) andnative-tls
feature flags for use withreqwest
. Previously, enabling thereqwest
feature flag would always userustls
. The default behavior is unchanged, but users that disable the default features and wish to continue usingrustls
may wish to add therustls-tls
feature flag to theirCargo.toml
. - Expose a
serde_path_to_error::Error<serde_json::Error>>
in theRequestTokenError::Parse
variant instead of aserde_json::Error
. This change should make JSON deserialization errors easier to diagnose.
4.0.0-alpha.6
Breaking Changes
- Fix URI/URL naming inconsistencies (#128). For context, see ramosbugs/openidconnect-rs#39.
set_introspection_url
->set_introspection_uri
set_redirect_url
->set_redirect_uri
set_revocation_url
->set_revocation_uri
4.0.0-alpha.5
Breaking Changes
- Have
Client::exchange_device_code
,Client::introspect
, andClient::revoke_token
fail fast with a newConfigurationError
enum when the relevant OAuth2 endpoint hasn't been configured by callingset_device_authorization_url
,set_introspection_url
, orset_revocation_url
, respectively. Previously, an error would not be returned until a call torequest
/request_async
(#127).
Other Changes
4.0.0-alpha.4
Breaking Changes
- Fix inconsistent naming of types related to RFC 7662 Token Introspection (fdab640/#123). This renames the following:
IntrospectRequest
toIntrospectionRequest
*TokenInspectionResponse
to*TokenIntrospectionResponse
IntrospectUrl
toIntrospectionUrl
introspect_url
tointrospection_url
.
New Features
-
Add support for OAuth 2.0 Token Revocation (RFC 7009) (#122).
Special thanks to @ximon18 for contributing this feature.
-
Add ureq http_client (#119)
Other Changes
- Support wasm32 targets (#120)
4.0.0-alpha.3
Breaking Changes
- Raise minimum supported Rust version (MSRV) to 1.45
- Upgrade
reqwest
to 0.11 and rename feature flag fromreqwest-010
toreqwest
. This upgradestokio
to 1.0. - Add
#[non_exhaustive]
attribute toAuthType
to support non-breaking additions in the future
New Features
-
Add support for the
plain
(plaintext) PKCE verifier when the (non-default)pkce-plain
feature flag is enabled. Use of this feature is discouraged for security reasons. -
Add support for OAuth 2.0 Token Introspection.
Special thanks to @jeroenvervaeke for contributing this feature.