13 lines
304 B
C#
13 lines
304 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace YLErp.Web.WebAPI
|
|
{
|
|
public class ApiAuthorizeAttribute : AuthorizeAttribute
|
|
{
|
|
public ApiAuthorizeAttribute() : base(AuthHelper.JwtAuthType)
|
|
{
|
|
this.AuthenticationSchemes = AuthHelper.JwtAuthType;
|
|
}
|
|
}
|
|
}
|