From 044021ee2980fd134c24f032e3cfabd3a8cdcda1 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 2 Nov 2024 12:32:53 -0400 Subject: [PATCH] Fix OAuth Gateway missing rate limit response definition --- src/Tgstation.Server.Host/Controllers/ApiRootController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tgstation.Server.Host/Controllers/ApiRootController.cs b/src/Tgstation.Server.Host/Controllers/ApiRootController.cs index 652c98d445..49f3e89c2b 100644 --- a/src/Tgstation.Server.Host/Controllers/ApiRootController.cs +++ b/src/Tgstation.Server.Host/Controllers/ApiRootController.cs @@ -196,8 +196,10 @@ namespace Tgstation.Server.Host.Controllers /// A resulting in the of the operation. /// generated successfully. /// OAuth authentication failed. + /// OAuth authentication failed due to rate limiting. [HttpPost("oauth_gateway")] [ProducesResponseType(typeof(OAuthGatewayResponse), 200)] + [ProducesResponseType(typeof(ErrorMessageResponse), 429)] public ValueTask CreateOAuthGatewayToken(CancellationToken cancellationToken) => loginAuthority.InvokeTransformable(this, authority => authority.AttemptOAuthGatewayLogin(cancellationToken)); }