From 51f1ddc0c2392bf1e42e0e97ccf07df8111acb52 Mon Sep 17 00:00:00 2001 From: Simone Cottini Date: Wed, 22 May 2024 10:27:24 +0200 Subject: [PATCH 1/2] Scope field is optional --- src/auth0/token.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/auth0/token.rs b/src/auth0/token.rs index aeacab2..e0a1610 100644 --- a/src/auth0/token.rs +++ b/src/auth0/token.rs @@ -104,10 +104,12 @@ impl Token { } } +/// The successful response received from the authorization server containing the access token. +/// Related [RFC](https://www.rfc-editor.org/rfc/rfc6749#section-5.1) #[derive(Deserialize, Serialize, Debug)] struct FetchTokenResponse { access_token: String, - scope: String, + scope: Option, expires_in: i32, token_type: String, } From dbdb96b417dcca9cabf2e57563f08f0ce2c6d894 Mon Sep 17 00:00:00 2001 From: Simone Cottini Date: Wed, 22 May 2024 11:19:43 +0200 Subject: [PATCH 2/2] Prepare the release --- CHANGELOG.md | 11 ++++++++++- Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5051921..d0a059d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- +## [0.16.3] - 2024-05-22 + +### Fixed + +- The authority server successful response might not include the `scope` field, that is now optional. + +--- + ## [0.16.2] - 2024-05-10 ### Added @@ -360,7 +368,8 @@ The old API is still available but deprecated. It will be removed soon. -[Unreleased]: https://github.com/primait/bridge.rs/compare/0.16.2...HEAD +[Unreleased]: https://github.com/primait/bridge.rs/compare/0.16.3...HEAD +[0.16.3]: https://github.com/primait/bridge.rs/compare/0.16.2...0.16.2 [0.16.2]: https://github.com/primait/bridge.rs/compare/0.16.1...0.16.2 [0.16.1]: https://github.com/primait/bridge.rs/compare/0.16.0...0.16.1 [0.16.0]: https://github.com/primait/bridge.rs/compare/0.15.1-rc.0...0.16.0 diff --git a/Cargo.toml b/Cargo.toml index 3058a1a..9dcc58a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" name = "prima_bridge" readme = "README.md" repository = "https://github.com/primait/bridge.rs" -version = "0.16.2" +version = "0.16.3" # See https://github.com/rust-lang/rust/issues/107557 rust-version = "1.72"