Skip to content

Commit

Permalink
chore(bindings): Add missing contacts field on OidcConfiguration.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave authored and poljar committed Sep 7, 2023
1 parent e655490 commit d7f5cd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bindings/matrix-sdk-ffi/src/authentication_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ pub struct OidcConfiguration {
pub tos_uri: Option<String>,
/// A URI that contains the client's privacy policy.
pub policy_uri: Option<String>,
/// An array of e-mail addresses of people responsible for this client.
pub contacts: Option<Vec<String>>,

/// Pre-configured registrations for use with issuers that don't support
/// dynamic client registration.
Expand Down Expand Up @@ -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),
Expand All @@ -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,
Expand Down

0 comments on commit d7f5cd5

Please sign in to comment.