From 5987882f561c65a538365df58210b6a151e5663e Mon Sep 17 00:00:00 2001 From: avdb13 Date: Tue, 1 Oct 2024 00:21:44 +0200 Subject: [PATCH] support backchannel logout metadata Signed-off-by: avdb13 --- Cargo.toml | 8 ++++---- crates/oauth2-types/src/oidc.rs | 11 +++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6005e7d0d..8ef6e5aa5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -312,7 +312,7 @@ digest.opt-level = 3 block-buffer.opt-level = 3 generic-array.opt-level = 3 -[patch.crates-io] -# Waiting for https://github.com/SeaQL/sea-query/pull/810 -sea-query = { git = "https://github.com/sandhose/sea-query", branch = "binder/relax-sqlx-dependency" } -sea-query-binder = { git = "https://github.com/sandhose/sea-query", branch = "binder/relax-sqlx-dependency" } +# [patch.crates-io] +# # Waiting for https://github.com/SeaQL/sea-query/pull/810 +# sea-query = { git = "https://github.com/sandhose/sea-query", branch = "binder/relax-sqlx-dependency" } +# sea-query-binder = { git = "https://github.com/sandhose/sea-query", branch = "binder/relax-sqlx-dependency" } diff --git a/crates/oauth2-types/src/oidc.rs b/crates/oauth2-types/src/oidc.rs index 011caaa9c..5a7b1cb21 100644 --- a/crates/oauth2-types/src/oidc.rs +++ b/crates/oauth2-types/src/oidc.rs @@ -624,6 +624,17 @@ pub struct ProviderMetadata { /// /// This is a Matrix extension introduced in [MSC2965](https://github.com/matrix-org/matrix-spec-proposals/pull/2965). pub account_management_actions_supported: Option>, + + /// Indicates whether the authorization server supports back-channel logout. + /// + /// Defaults to `false`. + pub backchannel_logout_supported: Option, + + /// Indicates whether the OP can pass a session ID claim in the logout token + /// to identify the RP session with the OP. + /// + /// Defaults to `false`. + pub backchannel_logout_session_supported: Option, } impl ProviderMetadata {