15 lines
353 B
C#
15 lines
353 B
C#
![]() |
using Microsoft.AspNetCore.Authentication.Cookies;
|
||
|
using Microsoft.AspNetCore.Authorization;
|
||
|
|
||
|
namespace WalkingTec.Mvvm.Mvc
|
||
|
{
|
||
|
public class AuthorizeCookieAttribute : AuthorizeAttribute
|
||
|
{
|
||
|
public AuthorizeCookieAttribute()
|
||
|
{
|
||
|
AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|