From 4b8fc2950f730c223ce373920fb02e72af21790a Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Wed, 24 Jan 2024 10:30:44 -0600 Subject: [PATCH] Add support for secondary credentials for registration service --- service/config/sample.yml | 4 ++++ .../textsecuregcm/WhisperServerService.java | 8 +++++++- .../configuration/RegistrationServiceConfiguration.java | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/service/config/sample.yml b/service/config/sample.yml index c4019eb37..dd2d07e14 100644 --- a/service/config/sample.yml +++ b/service/config/sample.yml @@ -419,6 +419,10 @@ registrationService: { "example": "example" } + secondaryCredentialConfigurationJson: | + { + "example": "example" + } identityTokenAudience: https://registration.example.com registrationCaCertificate: | # Registration service TLS certificate trust root -----BEGIN CERTIFICATE----- diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java b/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java index 22e9b3f7d..cf8fc727f 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java @@ -46,6 +46,7 @@ import java.util.concurrent.ThreadPoolExecutor; import javax.servlet.DispatcherType; import javax.servlet.FilterRegistration; import javax.servlet.ServletRegistration; +import org.apache.commons.lang3.StringUtils; import org.eclipse.jetty.servlets.CrossOriginFilter; import org.eclipse.jetty.websocket.server.config.JettyWebSocketServletContainerInitializer; import org.glassfish.jersey.server.ServerProperties; @@ -511,10 +512,15 @@ public class WhisperServerService extends Application