Skip to content

Commit

Permalink
Fix OAuth Gateway missing rate limit response definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Nov 2, 2024
1 parent d783b21 commit 044021e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tgstation.Server.Host/Controllers/ApiRootController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ public ValueTask<IActionResult> CreateToken(CancellationToken cancellationToken)
/// <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));
}
Expand Down

0 comments on commit 044021e

Please sign in to comment.