Fix OAuth Gateway missing rate limit response definition

This commit is contained in:
Jordan Dominion
2024-11-02 12:32:53 -04:00
parent d783b2105d
commit 044021ee29
@@ -196,8 +196,10 @@ namespace Tgstation.Server.Host.Controllers
/// <returns>A <see cref="ValueTask{TResult}"/> resulting in the <see cref="IActionResult"/> of the operation.</returns>
/// <response code="200"><see cref="OAuthGatewayResponse"/> generated successfully.</response>
/// <response code="401">OAuth authentication failed.</response>
/// <response code="429">OAuth authentication failed due to rate limiting.</response>
[HttpPost("oauth_gateway")]
[ProducesResponseType(typeof(OAuthGatewayResponse), 200)]
[ProducesResponseType(typeof(ErrorMessageResponse), 429)]
public ValueTask<IActionResult> CreateOAuthGatewayToken(CancellationToken cancellationToken)
=> loginAuthority.InvokeTransformable<OAuthGatewayLoginResult, OAuthGatewayResponse>(this, authority => authority.AttemptOAuthGatewayLogin(cancellationToken));
}