[WIP] Reworked auth schemes and added framework reference to Microsoft.AspNetCore.App
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user