UserAuthRepositoryAsyncManageRolesWrapper
Assembly: ServiceStack.dll
View Source
public class UserAuthRepositoryAsyncManageRolesWrapper : UserAuthRepositoryAsyncWrapper, IUserAuthRepositoryAsync, IAuthRepositoryAsync, IRequiresSchema, ICustomUserAuth, IQueryUserAuthAsync, IManageRolesAsync
Inherited Properties
AuthRepo
View Source
public IAuthRepository AuthRepo { get; }
Methods
GetRolesAsync(String, CancellationToken)
View Source
public Task<ICollection<string>> GetRolesAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<System.String>>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Threading.CancellationToken | token |
GetPermissionsAsync(String, CancellationToken)
View Source
public Task<ICollection<string>> GetPermissionsAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<System.String>>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Threading.CancellationToken | token |
GetRolesAndPermissionsAsync(String, CancellationToken)
View Source
public Task<Tuple<ICollection<string>, ICollection<string>>> GetRolesAndPermissionsAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Tuple<System.Collections.Generic.ICollection<System.String>,System.Collections.Generic.ICollection<System.String>>>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Threading.CancellationToken | token |
HasRoleAsync(String, String, CancellationToken)
View Source
public Task<bool> HasRoleAsync(string userAuthId, string role, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.String | role |
System.Threading.CancellationToken | token |
HasPermissionAsync(String, String, CancellationToken)
View Source
public Task<bool> HasPermissionAsync(string userAuthId, string permission, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.String | permission |
System.Threading.CancellationToken | token |
AssignRolesAsync(String, ICollection<String>, ICollection<String>, CancellationToken)
View Source
public Task AssignRolesAsync(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Collections.Generic.ICollection<System.String> | roles |
System.Collections.Generic.ICollection<System.String> | permissions |
System.Threading.CancellationToken | token |
UnAssignRolesAsync(String, ICollection<String>, ICollection<String>, CancellationToken)
View Source
public Task UnAssignRolesAsync(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Collections.Generic.ICollection<System.String> | roles |
System.Collections.Generic.ICollection<System.String> | permissions |
System.Threading.CancellationToken | token |
Inherited Methods
CreateOrMergeAuthSessionAsync(IAuthSession, IAuthTokens, CancellationToken)
View Source
public Task<IUserAuthDetails> CreateOrMergeAuthSessionAsync(IAuthSession authSession, IAuthTokens tokens, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuthDetails>
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IAuthSession | authSession |
ServiceStack.Auth.IAuthTokens | tokens |
System.Threading.CancellationToken | token |
CreateUserAuth()
View Source
public IUserAuth CreateUserAuth()
Returns
CreateUserAuthAsync(IUserAuth, String, CancellationToken)
View Source
public Task<IUserAuth> CreateUserAuthAsync(IUserAuth newUser, string password, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IUserAuth | newUser |
System.String | password |
System.Threading.CancellationToken | token |
CreateUserAuthDetails()
View Source
public IUserAuthDetails CreateUserAuthDetails()
Returns
ServiceStack.Auth.IUserAuthDetails
DeleteUserAuthAsync(String, CancellationToken)
View Source
public Task DeleteUserAuthAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Threading.CancellationToken | token |
GetUserAuthAsync(IAuthSession, IAuthTokens, CancellationToken)
View Source
public Task<IUserAuth> GetUserAuthAsync(IAuthSession authSession, IAuthTokens tokens, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IAuthSession | authSession |
ServiceStack.Auth.IAuthTokens | tokens |
System.Threading.CancellationToken | token |
GetUserAuthAsync(String, CancellationToken)
View Source
public Task<IUserAuth> GetUserAuthAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Threading.CancellationToken | token |
GetUserAuthByUserNameAsync(String, CancellationToken)
View Source
public Task<IUserAuth> GetUserAuthByUserNameAsync(string userNameOrEmail, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>
Parameters
Type | Name |
---|---|
System.String | userNameOrEmail |
System.Threading.CancellationToken | token |
GetUserAuthDetailsAsync(String, CancellationToken)
View Source
public Task<List<IUserAuthDetails>> GetUserAuthDetailsAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.Auth.IUserAuthDetails>>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Threading.CancellationToken | token |
GetUserAuthsAsync(String, Nullable<Int32>, Nullable<Int32>, CancellationToken)
View Source
public Task<List<IUserAuth>> GetUserAuthsAsync(string orderBy = null, int? skip = null, int? take = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.Auth.IUserAuth>>
Parameters
Type | Name |
---|---|
System.String | orderBy |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
System.Threading.CancellationToken | token |
InitSchema()
View Source
public void InitSchema()
LoadUserAuthAsync(IAuthSession, IAuthTokens, CancellationToken)
View Source
public Task LoadUserAuthAsync(IAuthSession session, IAuthTokens tokens, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Auth.IAuthTokens | tokens |
System.Threading.CancellationToken | token |
SaveUserAuthAsync(IAuthSession, CancellationToken)
View Source
public Task SaveUserAuthAsync(IAuthSession authSession, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IAuthSession | authSession |
System.Threading.CancellationToken | token |
SaveUserAuthAsync(IUserAuth, CancellationToken)
View Source
public Task SaveUserAuthAsync(IUserAuth userAuth, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IUserAuth | userAuth |
System.Threading.CancellationToken | token |
SearchUserAuthsAsync(String, String, Nullable<Int32>, Nullable<Int32>, CancellationToken)
View Source
public Task<List<IUserAuth>> SearchUserAuthsAsync(string query, string orderBy = null, int? skip = null, int? take = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.Auth.IUserAuth>>
Parameters
Type | Name |
---|---|
System.String | query |
System.String | orderBy |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
System.Threading.CancellationToken | token |
TryAuthenticateAsync(Dictionary<String, String>, String, Int32, String, CancellationToken)
View Source
public Task<IUserAuth> TryAuthenticateAsync(Dictionary<string, string> digestHeaders, string privateKey, int nonceTimeOut, string sequence, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.String> | digestHeaders |
System.String | privateKey |
System.Int32 | nonceTimeOut |
System.String | sequence |
System.Threading.CancellationToken | token |
TryAuthenticateAsync(String, String, CancellationToken)
View Source
public Task<IUserAuth> TryAuthenticateAsync(string userName, string password, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>
Parameters
Type | Name |
---|---|
System.String | userName |
System.String | password |
System.Threading.CancellationToken | token |
UpdateUserAuthAsync(IUserAuth, IUserAuth, String, CancellationToken)
View Source
public Task<IUserAuth> UpdateUserAuthAsync(IUserAuth existingUser, IUserAuth newUser, string password, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IUserAuth | existingUser |
ServiceStack.Auth.IUserAuth | newUser |
System.String | password |
System.Threading.CancellationToken | token |
UpdateUserAuthAsync(IUserAuth, IUserAuth, CancellationToken)
View Source
public Task<IUserAuth> UpdateUserAuthAsync(IUserAuth existingUser, IUserAuth newUser, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IUserAuth | existingUser |
ServiceStack.Auth.IUserAuth | newUser |
System.Threading.CancellationToken | token |