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