﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Telemetry.Security;

namespace Telemetry.Web.Features.Shared
{
    [Authorize]
    public class SecuredController : Controller
    {
        public SecuredController(ICurrentUser currentUser)
        {
            CurrentUser = currentUser ?? throw new System.ArgumentNullException(nameof(currentUser));
        }

        protected ICurrentUser CurrentUser { get; }
    }
}