Interface IMixIdentityService
Assembly: mix.library.dll
Syntax
public interface IMixIdentityService
Properties
|
Improve this Doc
View Source
Roles
Declaration
List<RoleViewModel> Roles { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
CheckEndpointPermission(ClaimsPrincipal, PathString, String)
Declaration
bool CheckEndpointPermission(ClaimsPrincipal user, PathString path, string method)
Parameters
Type |
Name |
Description |
System.Security.Claims.ClaimsPrincipal |
user |
|
Microsoft.AspNetCore.Http.PathString |
path |
|
System.String |
method |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CreateClaim(String, String)
Declaration
Claim CreateClaim(string type, string value)
Parameters
Type |
Name |
Description |
System.String |
type |
|
System.String |
value |
|
Returns
Type |
Description |
System.Security.Claims.Claim |
|
|
Improve this Doc
View Source
ExternalLogin(RegisterExternalBindingModel)
Declaration
Task<JObject> ExternalLogin(RegisterExternalBindingModel model)
Parameters
Returns
Type |
Description |
Task<JObject> |
|
|
Improve this Doc
View Source
GenerateAccessTokenAsync(MixUser, MixUserViewModel, Boolean, String, String)
Declaration
Task<AccessTokenViewModel> GenerateAccessTokenAsync(MixUser user, MixUserViewModel info, bool isRemember, string aesKey, string rsaPublicKey)
Parameters
Type |
Name |
Description |
MixUser |
user |
|
MixUserViewModel |
info |
|
System.Boolean |
isRemember |
|
System.String |
aesKey |
|
System.String |
rsaPublicKey |
|
Returns
|
Improve this Doc
View Source
GenerateTokenAsync(MixUser, MixUserViewModel, DateTime, String, String, String, MixAuthenticationConfigurations)
Declaration
Task<string> GenerateTokenAsync(MixUser user, MixUserViewModel info, DateTime expires, string refreshToken, string aesKey, string rsaPublicKey, MixAuthenticationConfigurations appConfigs)
Parameters
Type |
Name |
Description |
MixUser |
user |
|
MixUserViewModel |
info |
|
DateTime |
expires |
|
System.String |
refreshToken |
|
System.String |
aesKey |
|
System.String |
rsaPublicKey |
|
MixAuthenticationConfigurations |
appConfigs |
|
Returns
Type |
Description |
Task<System.String> |
|
|
Improve this Doc
View Source
GetAuthData(MixCmsContext, MixUser, Boolean, Int32)
Declaration
Task<JObject> GetAuthData(MixCmsContext context, MixUser user, bool rememberMe, int tenantId)
Parameters
Type |
Name |
Description |
MixCmsContext |
context |
|
MixUser |
user |
|
System.Boolean |
rememberMe |
|
System.Int32 |
tenantId |
|
Returns
Type |
Description |
Task<JObject> |
|
|
Improve this Doc
View Source
GetClaim(ClaimsPrincipal, String)
Declaration
string GetClaim(ClaimsPrincipal User, string claimType)
Parameters
Type |
Name |
Description |
System.Security.Claims.ClaimsPrincipal |
User |
|
System.String |
claimType |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetToken(GetTokenModel)
Declaration
Task<JObject> GetToken(GetTokenModel model)
Parameters
Returns
Type |
Description |
Task<JObject> |
|
|
Improve this Doc
View Source
Login(LoginViewModel)
Declaration
Task<JObject> Login(LoginViewModel model)
Parameters
Returns
Type |
Description |
Task<JObject> |
|
|
Improve this Doc
View Source
Register(RegisterViewModel, Int32, UnitOfWorkInfo)
Declaration
Task<JObject> Register(RegisterViewModel model, int tenantId, UnitOfWorkInfo _cmsUOW)
Parameters
Type |
Name |
Description |
RegisterViewModel |
model |
|
System.Int32 |
tenantId |
|
UnitOfWorkInfo |
_cmsUOW |
|
Returns
Type |
Description |
Task<JObject> |
|
|
Improve this Doc
View Source
RenewTokenAsync(RenewTokenDto)
Declaration
Task<JObject> RenewTokenAsync(RenewTokenDto refreshTokenDto)
Parameters
Returns
Type |
Description |
Task<JObject> |
|
|
Improve this Doc
View Source
VerifyExternalAccessToken(MixExternalLoginProviders, String, MixAuthenticationConfigurations)
Declaration
Task<ParsedExternalAccessToken> VerifyExternalAccessToken(MixExternalLoginProviders provider, string accessToken, MixAuthenticationConfigurations appConfigs)
Parameters
Returns