mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-23 11:47:20 +08:00
添加项目文件。
This commit is contained in:
29
CoreCms.Net.Auth/HttpContextUser/IHttpContextUser.cs
Normal file
29
CoreCms.Net.Auth/HttpContextUser/IHttpContextUser.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Claims;
|
||||
using System.Text;
|
||||
|
||||
namespace CoreCms.Net.Auth.HttpContextUser
|
||||
{
|
||||
public interface IHttpContextUser
|
||||
{
|
||||
string Name { get; }
|
||||
int ID { get; }
|
||||
bool IsAuthenticated();
|
||||
IEnumerable<Claim> GetClaimsIdentity();
|
||||
List<string> GetClaimValueByType(string ClaimType);
|
||||
|
||||
string GetToken();
|
||||
List<string> GetUserInfoFromToken(string ClaimType);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user