iotgateway/WalkingTec.Mvvm/WalkingTec.Mvvm.Mvc/Auth/Attribute/AuthorizeCookieAttribute.cs

15 lines
353 B
C#
Raw Normal View History

2021-12-14 06:10:44 +00:00
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
namespace WalkingTec.Mvvm.Mvc
{
public class AuthorizeCookieAttribute : AuthorizeAttribute
{
public AuthorizeCookieAttribute()
{
AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme;
}
}
}