44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using Microsoft.AspNetCore.Authentication.Cookies;
|
|
using Microsoft.AspNetCore.Authentication;
|
|
using System.Security.Claims;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using DigitalData.UserManager.Application.Contracts;
|
|
using DigitalData.UserManager.Application.DTOs.User;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using DigitalData.UserManager.Application;
|
|
using DigitalData.Core.Abstractions.Application;
|
|
using WorkFlow.API.Models;
|
|
using WorkFlow.API.Attributes;
|
|
|
|
namespace WorkFlow.API.Controllers
|
|
{
|
|
//TODO: implement up-to-date AuthController in UserManager
|
|
[APIKeyAuth]
|
|
[Route("Auth")]
|
|
[ApiController]
|
|
public class PlaceholderAuthController : ControllerBase
|
|
{
|
|
[HttpPost("login")]
|
|
[AllowAnonymous]
|
|
public IActionResult Login([FromForm] Login login)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpPost("logout")]
|
|
public IActionResult Logout()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpPost]
|
|
public IActionResult CreateTokenViaBody([FromBody] Login login, [FromQuery] bool cookie = false)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpGet("check")]
|
|
[Authorize]
|
|
public IActionResult Check() => Ok();
|
|
}
|
|
} |