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" 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, }