18 lines
421 B
C#
18 lines
421 B
C#
using System.Collections.Generic;
|
|
using System.Security.Claims;
|
|
|
|
namespace Admin.Core.Common
|
|
{
|
|
public interface IUser
|
|
{
|
|
string Name { get; }
|
|
int ID { get; }
|
|
bool IsAuthenticated();
|
|
IEnumerable<Claim> GetClaimsIdentity();
|
|
List<string> GetClaimValueByType(string ClaimType);
|
|
|
|
string GetToken();
|
|
List<string> GetUserInfoFromToken(string ClaimType);
|
|
}
|
|
}
|