mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-21 12:06:59 +01:00
Fix OAuth Gateway missing rate limit response definition
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user