feat:基于furion搭建
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using Furion.Authorization;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Furion.Rbac.Web.Core;
|
||||
|
||||
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