Start OAuth required endpoints
Docker Build and Release Upload / build (push) Failing after 3m41s

This commit is contained in:
2025-07-24 17:37:16 -07:00
parent 9f442eaab6
commit 834fcbbbcd
6 changed files with 107 additions and 2 deletions
+36
View File
@@ -0,0 +1,36 @@
using Microsoft.AspNetCore.Mvc;
using Auth.Services.DatabaseService;
using System.Web.Http;
using Auth.Entities;
namespace Auth.Controllers {
[ApiController]
[Route("api/oauth/")]
public class OAuthController : MistoxControllerBase {
public OAuthController(DatabaseService db) : base(db) {}
[HttpGet("/authorize")]
public async Task<ActionResult> Authorize([FromQuery] AuthorizationRequest request) {
try {
return NotFound("User is not logged in");
} catch (Exception ex) {
Console.WriteLine("Delete Error: " + ex.Message);
return NotFound("An internal server error has occured");
}
}
[HttpGet("/token")]
public async Task<ActionResult> Token([FromForm] TokenRequest request) {
try {
return NotFound("User is not logged in");
} catch (Exception ex) {
Console.WriteLine("Delete Error: " + ex.Message);
return NotFound("An internal server error has occured");
}
}
}
}