zhaolei
8 days ago 4a2e5b9a21940f11757be37d99f0944e240e908b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Security.Claims;
 
namespace Bootstrap.Security.Authorization
{
    /// <summary>
    /// 按钮授权接口
    /// </summary>
    public interface IButtonAuthorization
    {
        /// <summary>
        /// 授权方法
        /// </summary>
        /// <param name="user">当前登录用户实例</param>
        /// <param name="url">当前请求地址 Url</param>
        /// <param name="authKeys">当前按钮授权字符串键值</param>
        /// <returns></returns>
        bool Authorizate(ClaimsPrincipal user, string url, string authKeys);
    }
}