Releases: ramosbugs/oauth2-rs
4.0.0-alpha.2
New Features
-
Add support for OAuth 2.0 Device Authorization Grant.
Special thanks to @maxdymond for contributing this feature.
4.0.0-alpha.1
Breaking changes
- Raise minimum supported Rust version to 1.41
- Drop support for
reqwest
0.9 (previously enabled via thereqwest-09
feature flag); only the (default)reqwest-010
feature flag is now supported - Migrate public API from
http
0.1 to 0.2 - Drop support for
futures
0.1 and remove thefutures-01
andfutures-03
feature flags; only async/await is now supported (without requiring any feature flags) - Eliminate
Async*
traits and move therequest_async
methods to the underlying*Request
structs - Return error types that implement
std::error::Error
instead offailure::Fail
Other changes
- Remove
Send
andSync
trait bounds on error types to improve compatibility withactix
- Have
reqwest
client userustls-tls
instead of the default native TLS - Enable
serde
feature flag onurl
crate dependency - Upgrade
sha2
dependency - RUSTSEC-2016-0005: replace
rust-crypto
withhmac
in dev-dependencies - Remove unused
unicode-normalization
dependency - Rename
master
branch tomain
3.0.0
3.0.0-alpha.10
- Add
AuthorizationRequest::set_redirect_url
method - Update
sha2
,rand
, andbase64
dependencies - Pin to
hex
0.4.0 to maintain Rust 1.34 compatibility
3.0.0-alpha.9
Breaking changes
- Add
Extension
variants toBasicTokenType
andBasicErrorResponseType
enums
Other changes
- Update
reqwest-010
feature flag to usereqwest
0.10 - Add re-export of
http
andurl
crates
3.0.0-alpha.8
This release is identical to 3.0.0-alpha.7
except that it pins specifically
to reqwest
version 0.10.0-alpha.2
when the request-010
feature
is enabled. This prevents Cargo's SemVer functionality from automatically
using reqwest
0.10, with which this crate is not yet compatible.
3.0.0-alpha.7
Breaking changes
- To support async/await without unconditionally depending on
reqwest
, renamed thereqwest
feature flag toreqwest-09
and added a separatereqwest-010
flag separate fromfutures-03
. The default feature flag remainsreqwest-09
. Added new docs describing the various HTTP client interfaces. - Removed
async_internal
module from public API (previously included accidentally).
Other changes
- Removed
async-std
dependency - Simplified README and improved docs.rs documentation.
- Added Letterboxd API example
- Linked to contributed
actix-web-oauth2
example in docs
3.0.0-alpha.6
- Add
from_url
constructor to URL-based NewTypes (AuthUrl, TokenUrl, RedirectUrl) - Add type aliases
reqwest::{HttpClientError, FutureHttpClientError, AsyncHttpClientError}
3.0.0-alpha.5
Breaking changes
Async/await support
With the default feature flags, this crate no longer includes async support. To enable legacy async support using futures 0.1, use the futures-01
feature flag in Cargo.toml
. To enable async/await support (requires rustc
1.39.0 or newer), use the futures-03
feature.
Special thanks to @marcelbuesing for contributing this support.
URL-based NewTypes
The URL-based NewTypes (AuthUrl
, TokenUrl
, RedirectUrl
) no longer accept a Url
type in their constructors. Instead, they parse the URLs internally, as well as maintain an unparsed copy of the input string, which is returned by Deref
. This avoids the URL canonicalization performed by the url
crate (e.g., adding a trailing slash for URLs with no path component). Previously, this canonicalization sometimes caused mismatches when comparing redirect URIs, which are expected to be identical. A parsed version of the URL can still be accessed by using the new .url()
method.
3.0.0-alpha.4
Breaking changes
- Update
url
crate from 1.0 to 2.1
Other changes
- Make curl an optional dependency
- Derive
Clone
forCsrfToken