基于策略和资源的授权机制
This commit is contained in:
1 parent
2d0e504108
commit
65925ce6ef
13 files changed
+172
-51
No files matched your search
@@ -33,7 +33,7 @@ public abstract class PermissionChecker(IHttpContextAccessor httpContextAccessor
|
||||
|
||||
await distributedCache.SetObjectAsync(cacheKey, new PermissionGrantCacheItem(isGranted), new DistributedCacheEntryOptions
|
||||
{
|
||||
SlidingExpiration = TimeSpan.FromMinutes(10)
|
||||
AbsoluteExpiration = DateTimeOffset.Now.AddSeconds(1)
|
||||
});
|
||||
|
||||
if (isGranted)
|
||||
|
||||
Reference in new issue
Block a user