using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Infrastructure.Auth { /// /// 用于身份认证接口 /// public interface IAuthenticationService { /// /// 登录 /// /// 登录名 /// 与登录名相关的用户信息 /// 登录Cookie的过期时间,单位:分钟。 void SignIn(string loginName, dynamic userInfo, TimeSpan expiration); /// /// 注销 /// void SignOut(); /// /// 获取当前登录的用户 /// /// 当前用户未通过认证则返回null dynamic GetAuthenticatedUser(); } }