UserAuthRepositoryAsyncWrapper
Assembly: ServiceStack.dll
View Source
public class UserAuthRepositoryAsyncWrapper : IUserAuthRepositoryAsync, IAuthRepositoryAsync, IRequiresSchema, ICustomUserAuth, IQueryUserAuthAsync
Properties
AuthRepo
View Source
public IAuthRepository AuthRepo { get; }
Methods
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
InitSchema()
View Source
public void InitSchema()
CreateUserAuth()
View Source
public IUserAuth CreateUserAuth()
Returns
CreateUserAuthDetails()
View Source
public IUserAuthDetails CreateUserAuthDetails()
Returns
ServiceStack.Auth.IUserAuthDetails
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 |
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 |