From bed5978862b8920cc0a0cddaa38f071c887e0336 Mon Sep 17 00:00:00 2001 From: Doug Date: Thu, 7 Sep 2023 16:27:51 +0100 Subject: [PATCH] chore(bindings): Add missing contacts field on OidcConfiguration. --- bindings/matrix-sdk-ffi/src/authentication_service.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/matrix-sdk-ffi/src/authentication_service.rs b/bindings/matrix-sdk-ffi/src/authentication_service.rs index e56e89d0386..22821b7b900 100644 --- a/bindings/matrix-sdk-ffi/src/authentication_service.rs +++ b/bindings/matrix-sdk-ffi/src/authentication_service.rs @@ -115,6 +115,8 @@ pub struct OidcConfiguration { pub tos_uri: Option, /// A URI that contains the client's privacy policy. pub policy_uri: Option, + /// An array of e-mail addresses of people responsible for this client. + pub contacts: Option>, /// Pre-configured registrations for use with issuers that don't support /// dynamic client registration. @@ -562,6 +564,7 @@ impl AuthenticationService { let logo_uri = configuration.logo_uri.localized_url()?; let policy_uri = configuration.policy_uri.localized_url()?; let tos_uri = configuration.tos_uri.localized_url()?; + let contacts = configuration.contacts.clone(); ClientMetadata { application_type: Some(ApplicationType::Native), @@ -571,7 +574,7 @@ impl AuthenticationService { token_endpoint_auth_method: Some(OAuthClientAuthenticationMethod::None), // The server should display the following fields when getting the user's consent. client_name, - contacts: None, + contacts, client_uri, logo_uri, policy_uri,