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

15 lines
338 B
C#
Raw Permalink Normal View History

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