Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLATFORM-1763]: Scope should be optional #160

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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