using System;
using Microsoft.AspNetCore.Mvc.Filters;

namespace DFS.Core.Mvc.Jwt.Impl
{
    /// <summary>
    /// 授权扩展
    /// </summary>
    public interface IAuth
    {
        /// <summary>
        /// Token 授权
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        bool AuthToken(ActionExecutingContext context);

        ///// <summary>
        ///// client 授权
        ///// </summary>
        ///// <param name="context"></param>
        ///// <returns></returns>
        bool AuthClient(ActionExecutingContext context);
    }
}
