Refer to the Upgrade Guide for tips on how to upgrade from 4.x.
Changes since 5.0.0-rc.1
Bug Fixes
- Improve HttpClientError::Reqwest error message (9a2b746)
Full Changelog: 5.0.0-rc.1...5.0.0
Summary of changes since 4.4.2
Breaking Changes
- Replace
TokenResponsegeneric with associated type (30ced32) - Return
impl Futureinstead ofPin<Box<dyn Future>>to fixSend/Syncbounds (6e583bd) - Bump
httpto 1.0 andreqwestto 0.12 (408ecab) - Add conditional typestates (replacing Boolean typestates from 5.0.0-alpha.1) (85ea470)
- Consolidate HTTP client errors into
oauth2::HttpClientErrorand flatten exports (e.g.,oauth2::reqwestinstead ofoauth2::reqwest::reqwest) (4391eed) - reqwest: Migrate to shared
Errortype and usethiserror'sFromimpl by @MarijnS95 (#238) - Bump MSRV to 1.65 and institute a policy supporting Rust releases going back at least 6 months (same policy as
openidconnectcrate) (576f809) - Improve
Displayoutput ofRequestTokenError::ServerResponse(96c6f9b) - Track
Clientendpoints statically via typestates (1d1f4d1) - Refactor crate into smaller private modules and make
devicecodeandrevocationmodules private (9d8f11a) - Add
reqwest-blockingfeature (da7d1c5) - Rename URI/URL getters and setters (4d55c26)
- Add
AsyncHttpClientandSyncHttpClienttraits (23b952b)
New Features
- Implement
SecretType::into_secret(#272) - Add
timing-resistant-secret-traitsfeature for PartialEq/Hash by @kate-shine (#232) - Derive
Eqfor types that already derivePartialEq(b19ad89) - Implement
Frominstead ofIntofor newtypes (d9402c4) - Implement
Displaytrait for URL types (8bd0ff1)
Bug Fixes
- Improve HttpClientError::Reqwest error message (9a2b746)
- Accept null device code interval (#278)
- Ignore async token revocation response body (#282)
- Derive Clone and Debug for EndpointState types (#263)
Other Changes
- Inline format args (#270)
- Update dev dependencies (#285)
- Remove defunct sponsorship from README
- Remove client secret from implicit flow example (#286)
- Use --locked on MSRV build in CI
- Allow base64 0.21 or 0.22 (#261)
- Bump
base64to 0.21 (db0ea44) - Set minimum version of
chronoto 0.4.31 (7b667fc) - Mention
openidconnectcrate in README (7b667fc) - Add note about
spawn_blockingto docs (1fc8188) - Re-export
curlasoauth2::curlandureqasoauth2::ureqwhen the corresponding Cargo features are enabled (aff7471) - Replace
map_err()conversions with aFromcall via theTryoperator by @MarijnS95 (#239) - Fix comments about
csrf_stateby @ikehz (#245) - Add documentation about comparing secrets securely by @ikehz (#246)
- Remove unused imports in examples by @frewsxcv (#207)
- Make private
prepare_request()methods infallible (8ef74ac) - Address clippy lints and clean up examples (d675e81)
- Remove empty leading and trailing lines from doc comments (a8b5cf8)
- Reorder and clean up imports (92c491a)
- Add Upgrade Guide
Full Changelog: 4.4.2...5.0.0