From 342c8a1b285ea887d3ee9d186afdf754cbffe2e7 Mon Sep 17 00:00:00 2001 From: Katherine Yen Date: Fri, 17 Oct 2025 11:16:41 -0400 Subject: [PATCH] Check for an authorization header in PUT /v1/devices/link --- .../textsecuregcm/controllers/DeviceController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java index a045c8194..43f984307 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java @@ -251,7 +251,7 @@ public class DeviceController { @ApiResponse(responseCode = "429", description = "Too many attempts", headers = @Header( name = "Retry-After", description = "If present, an positive integer indicating the number of seconds before a subsequent attempt could succeed")) - public LinkDeviceResponse linkDevice(@HeaderParam(HttpHeaders.AUTHORIZATION) BasicAuthorizationHeader authorizationHeader, + public LinkDeviceResponse linkDevice(@HeaderParam(HttpHeaders.AUTHORIZATION) @NotNull BasicAuthorizationHeader authorizationHeader, @HeaderParam(HttpHeaders.USER_AGENT) @Nullable String userAgent, @NotNull @Valid LinkDeviceRequest linkDeviceRequest) throws RateLimitExceededException, DeviceLimitExceededException {