mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 22:33:26 +08:00
31 lines
1.0 KiB
C#
31 lines
1.0 KiB
C#
/***********************************************************************
|
|
* 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; }
|
|
string OpenId { get; }
|
|
bool IsAuthenticated();
|
|
IEnumerable<Claim> GetClaimsIdentity();
|
|
List<string> GetClaimValueByType(string ClaimType);
|
|
|
|
string GetToken();
|
|
List<string> GetUserInfoFromToken(string ClaimType);
|
|
}
|
|
}
|