[WIP] Reworked auth schemes and added framework reference to Microsoft.AspNetCore.App

This commit is contained in:
max
2025-05-02 23:27:41 +02:00
parent 723c654d70
commit edf8891ddc
11 changed files with 125 additions and 173 deletions

View File

@@ -1,3 +1,4 @@
using System.Text.Json;
using Microsoft.AspNetCore.Mvc;
namespace DotBased.AspNet.Authority.Controllers;
@@ -6,5 +7,21 @@ namespace DotBased.AspNet.Authority.Controllers;
[Route("[controller]")]
public class AuthorityController : ControllerBase
{
[HttpGet("auth/login")]
public async Task<ActionResult> LoginFromSchemeAsync([FromQuery(Name = "s")] string scheme)
{
return BadRequest();
}
[HttpGet("auth/logout")]
public async Task<ActionResult> LogoutAsync()
{
return Ok();
}
[HttpGet("info")]
public async Task<ActionResult<JsonDocument>> GetAuthorityInfoAsync()
{
return Ok();
}
}