chore:目录重构
This commit is contained in:
16
Yi.Furion.Net6/Yi.Furion.Web.Core/Handlers/JwtHandler.cs
Normal file
16
Yi.Furion.Net6/Yi.Furion.Web.Core/Handlers/JwtHandler.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Furion.Authorization;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Furion.Web.Core.Handlers;
|
||||
|
||||
public class JwtHandler : AppAuthorizeHandler
|
||||
{
|
||||
public override Task<bool> PipelineAsync(AuthorizationHandlerContext context, DefaultHttpContext httpContext)
|
||||
{
|
||||
// 这里写您的授权判断逻辑,授权通过返回 true,否则返回 false
|
||||
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user