We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d8556 commit 8d96d74Copy full SHA for 8d96d74
API/Controller/OAuth/Authorize.cs
@@ -1,3 +1,4 @@
1
+using System.ComponentModel.DataAnnotations;
2
using Microsoft.AspNetCore.Mvc;
3
using Microsoft.AspNetCore.RateLimiting;
4
using OpenShock.API.OAuth;
@@ -20,7 +21,7 @@ public sealed partial class OAuthController
20
21
[EnableRateLimiting("auth")]
22
[HttpPost("{provider}/authorize")]
23
[ApiExplorerSettings(IgnoreApi = true)]
- public async Task<IActionResult> OAuthAuthorize([FromRoute] string provider, [FromQuery(Name="flow")] OAuthFlow flow)
24
+ public async Task<IActionResult> OAuthAuthorize([FromRoute] string provider, [FromQuery(Name="flow"), Required] OAuthFlow flow)
25
{
26
if (!await _schemeProvider.IsSupportedOAuthScheme(provider))
27
return Problem(OAuthError.UnsupportedProvider);
0 commit comments