Use the correct shared secret for minting storage service credentials in

gRPC
This commit is contained in:
Ameya Lokare authored and Chris Eager committed 2026-08-20 11:02:30 -04:00
1 parent ec5613b92a
commit 65bc5e3257
1 file changed
+2 -1
@@ -18,6 +18,7 @@ import org.whispersystems.textsecuregcm.WhisperServerConfiguration;
import org.whispersystems.textsecuregcm.auth.ExternalServiceCredentialsGenerator;
import org.whispersystems.textsecuregcm.configuration.DirectoryV2ClientConfiguration;
import org.whispersystems.textsecuregcm.configuration.PaymentsServiceConfiguration;
import org.whispersystems.textsecuregcm.configuration.SecureStorageServiceConfiguration;
import org.whispersystems.textsecuregcm.configuration.SecureValueRecoveryConfiguration;
public enum ExternalServiceDefinitions {
@@ -48,7 +49,7 @@ public enum ExternalServiceDefinitions {
.build();
}),
STORAGE(ExternalServiceType.EXTERNAL_SERVICE_TYPE_STORAGE, (chatConfig, _) -> {
final PaymentsServiceConfiguration cfg = chatConfig.getPaymentsServiceConfiguration();
final SecureStorageServiceConfiguration cfg = chatConfig.getSecureStorageServiceConfiguration();
return ExternalServiceCredentialsGenerator
.builder(cfg.userAuthenticationTokenSharedSecret())
.prependUsername(true)