27 lines
826 B
C#
27 lines
826 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using DigitalData.UserManager.Application.DTOs.Auth;
|
|
|
|
namespace DigitalData.UserManager.API.Controllers;
|
|
|
|
[Route("api/Auth")]
|
|
[ApiController]
|
|
[Tags("Auth")]
|
|
public class PlaceholderAuthController : ControllerBase
|
|
{
|
|
[AllowAnonymous]
|
|
[HttpGet("check")]
|
|
public IActionResult CheckAuthentication() => throw new NotImplementedException();
|
|
|
|
[AllowAnonymous]
|
|
[HttpPost("login")]
|
|
public Task<IActionResult> Login([FromBody] LogInDto login) => throw new NotImplementedException();
|
|
|
|
[Authorize]
|
|
[HttpGet("user")]
|
|
public Task<IActionResult> GetUserWithClaims() => throw new NotImplementedException();
|
|
|
|
[Authorize]
|
|
[HttpPost("logout")]
|
|
public Task<IActionResult> Logout() => throw new NotImplementedException();
|
|
} |