15 lines
338 B
C#
15 lines
338 B
C#
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace WalkingTec.Mvvm.Mvc
|
|
{
|
|
public class AuthorizeJwtAttribute : AuthorizeAttribute
|
|
{
|
|
public AuthorizeJwtAttribute()
|
|
{
|
|
AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme;
|
|
}
|
|
}
|
|
|
|
}
|