CodeLiturgy.Dashboard/BlueWest.Api/Controllers/ApplicationUserController.cs

27 lines
796 B
C#

using BlueWest.WebApi.Context;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace BlueWest.WebApi.Controllers
{
[ApiController]
[Route("[controller]")]
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
[Authorize(AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]
public class ApplicationUserController : ControllerBase
{
private readonly ApplicationUserDbContext _context;
public ApplicationUserController(ApplicationUserDbContext context)
{
_context = context;
}
}
}