Skip to content

Commit

Permalink
[PLATFORM-1763]: Scope should be optional (#160)
Browse files Browse the repository at this point in the history
* Scope field is optional

* Prepare the release
  • Loading branch information
cottinisimone authored May 22, 2024
1 parent e53dfe9 commit 40207c4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 3 additions & 1 deletion src/auth0/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
expires_in: i32,
token_type: String,
}
Expand Down

0 comments on commit 40207c4

Please sign in to comment.