mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
887 B
49 lines
887 B
using System;
|
|
using System.Security.Claims;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Volo.Abp.Users
|
|
{
|
|
public interface ICurrentUser
|
|
{
|
|
bool IsAuthenticated { get; }
|
|
|
|
[CanBeNull]
|
|
Guid? Id { get; }
|
|
|
|
[CanBeNull]
|
|
string UserName { get; }
|
|
|
|
[CanBeNull]
|
|
string Name { get; }
|
|
|
|
[CanBeNull]
|
|
string SurName { get; }
|
|
|
|
[CanBeNull]
|
|
string PhoneNumber { get; }
|
|
|
|
bool PhoneNumberVerified { get; }
|
|
|
|
[CanBeNull]
|
|
string Email { get; }
|
|
|
|
bool EmailVerified { get; }
|
|
|
|
Guid? TenantId { get; }
|
|
|
|
[NotNull]
|
|
string[] Roles { get; }
|
|
|
|
[CanBeNull]
|
|
Claim FindClaim(string claimType);
|
|
|
|
[NotNull]
|
|
Claim[] FindClaims(string claimType);
|
|
|
|
[NotNull]
|
|
Claim[] GetAllClaims();
|
|
|
|
bool IsInRole(string roleName);
|
|
}
|
|
}
|
|
|