mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-24 16:18:06 +01:00
Check for an authorization header in PUT /v1/devices/link
This commit is contained in:
committed by
Jon Chambers
parent
ad2500d4fd
commit
342c8a1b28
@@ -251,7 +251,7 @@ public class DeviceController {
|
|||||||
@ApiResponse(responseCode = "429", description = "Too many attempts", headers = @Header(
|
@ApiResponse(responseCode = "429", description = "Too many attempts", headers = @Header(
|
||||||
name = "Retry-After",
|
name = "Retry-After",
|
||||||
description = "If present, an positive integer indicating the number of seconds before a subsequent attempt could succeed"))
|
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,
|
@HeaderParam(HttpHeaders.USER_AGENT) @Nullable String userAgent,
|
||||||
@NotNull @Valid LinkDeviceRequest linkDeviceRequest)
|
@NotNull @Valid LinkDeviceRequest linkDeviceRequest)
|
||||||
throws RateLimitExceededException, DeviceLimitExceededException {
|
throws RateLimitExceededException, DeviceLimitExceededException {
|
||||||
|
|||||||
Reference in New Issue
Block a user