Skip to content

Releases: ramosbugs/oauth2-rs

4.0.0-alpha.2

23 Sep 21:18
297fe19
Compare
Choose a tag to compare
4.0.0-alpha.2 Pre-release
Pre-release

New Features

4.0.0-alpha.1

08 Jul 22:07
4c89e46
Compare
Choose a tag to compare
4.0.0-alpha.1 Pre-release
Pre-release

Breaking changes

  • Raise minimum supported Rust version to 1.41
  • Drop support for reqwest 0.9 (previously enabled via the reqwest-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 the futures-01 and futures-03 feature flags; only async/await is now supported (without requiring any feature flags)
  • Eliminate Async* traits and move the request_async methods to the underlying *Request structs
  • Return error types that implement std::error::Error instead of failure::Fail

Other changes

  • Remove Send and Sync trait bounds on error types to improve compatibility with actix
  • Have reqwest client use rustls-tls instead of the default native TLS
  • Enable serde feature flag on url crate dependency
  • Upgrade sha2 dependency
  • RUSTSEC-2016-0005: replace rust-crypto with hmac in dev-dependencies
  • Remove unused unicode-normalization dependency
  • Rename master branch to main

3.0.0

14 Jun 16:45
Compare
Choose a tag to compare

This version is identical to 3.0.0-alpha.10 but is no longer considered to be a pre-release.

3.0.0-alpha.10

08 Jun 19:12
ed23547
Compare
Choose a tag to compare
3.0.0-alpha.10 Pre-release
Pre-release
  • Add AuthorizationRequest::set_redirect_url method
  • Update sha2, rand, and base64 dependencies
  • Pin to hex 0.4.0 to maintain Rust 1.34 compatibility

3.0.0-alpha.9

23 Jan 20:50
Compare
Choose a tag to compare
3.0.0-alpha.9 Pre-release
Pre-release

Breaking changes

  • Add Extension variants to BasicTokenType and BasicErrorResponseType enums

Other changes

  • Update reqwest-010 feature flag to use reqwest 0.10
  • Add re-export of http and url crates

3.0.0-alpha.8

15 Jan 00:15
Compare
Choose a tag to compare
3.0.0-alpha.8 Pre-release
Pre-release

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

08 Dec 02:30
Compare
Choose a tag to compare
3.0.0-alpha.7 Pre-release
Pre-release

Breaking changes

  • To support async/await without unconditionally depending on reqwest, renamed the reqwest feature flag to reqwest-09 and added a separate reqwest-010 flag separate from futures-03. The default feature flag remains reqwest-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

27 Nov 01:03
Compare
Choose a tag to compare
3.0.0-alpha.6 Pre-release
Pre-release
  • Add from_url constructor to URL-based NewTypes (AuthUrl, TokenUrl, RedirectUrl)
  • Add type aliases reqwest::{HttpClientError, FutureHttpClientError, AsyncHttpClientError}

3.0.0-alpha.5

20 Nov 01:41
Compare
Choose a tag to compare
3.0.0-alpha.5 Pre-release
Pre-release

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

19 Oct 01:12
Compare
Choose a tag to compare
3.0.0-alpha.4 Pre-release
Pre-release

Breaking changes

  • Update url crate from 1.0 to 2.1

Other changes

  • Make curl an optional dependency
  • Derive Clone for CsrfToken