Skip to main content

UserAuthRepositoryAsyncWrapper

Assembly: ServiceStack.dll
View Source
Declaration
public class UserAuthRepositoryAsyncWrapper : IUserAuthRepositoryAsync, IAuthRepositoryAsync, IRequiresSchema, ICustomUserAuth, IQueryUserAuthAsync

Properties

AuthRepo

View Source
Declaration
public IAuthRepository AuthRepo { get; }

Methods

LoadUserAuthAsync(IAuthSession, IAuthTokens, CancellationToken)

View Source
Declaration
public Task LoadUserAuthAsync(IAuthSession session, IAuthTokens tokens, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Auth.IAuthTokenstokens
System.Threading.CancellationTokentoken

SaveUserAuthAsync(IAuthSession, CancellationToken)

View Source
Declaration
public Task SaveUserAuthAsync(IAuthSession authSession, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession
System.Threading.CancellationTokentoken

GetUserAuthDetailsAsync(String, CancellationToken)

View Source
Declaration
public Task<List<IUserAuthDetails>> GetUserAuthDetailsAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.Auth.IUserAuthDetails>>

Parameters
TypeName
System.StringuserAuthId
System.Threading.CancellationTokentoken

CreateOrMergeAuthSessionAsync(IAuthSession, IAuthTokens, CancellationToken)

View Source
Declaration
public Task<IUserAuthDetails> CreateOrMergeAuthSessionAsync(IAuthSession authSession, IAuthTokens tokens, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuthDetails>

Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession
ServiceStack.Auth.IAuthTokenstokens
System.Threading.CancellationTokentoken

GetUserAuthAsync(IAuthSession, IAuthTokens, CancellationToken)

View Source
Declaration
public Task<IUserAuth> GetUserAuthAsync(IAuthSession authSession, IAuthTokens tokens, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession
ServiceStack.Auth.IAuthTokenstokens
System.Threading.CancellationTokentoken

GetUserAuthByUserNameAsync(String, CancellationToken)

View Source
Declaration
public Task<IUserAuth> GetUserAuthByUserNameAsync(string userNameOrEmail, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
System.StringuserNameOrEmail
System.Threading.CancellationTokentoken

SaveUserAuthAsync(IUserAuth, CancellationToken)

View Source
Declaration
public Task SaveUserAuthAsync(IUserAuth userAuth, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Auth.IUserAuthuserAuth
System.Threading.CancellationTokentoken

TryAuthenticateAsync(String, String, CancellationToken)

View Source
Declaration
public Task<IUserAuth> TryAuthenticateAsync(string userName, string password, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
System.StringuserName
System.Stringpassword
System.Threading.CancellationTokentoken

TryAuthenticateAsync(Dictionary<String, String>, String, Int32, String, CancellationToken)

View Source
Declaration
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
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>digestHeaders
System.StringprivateKey
System.Int32nonceTimeOut
System.Stringsequence
System.Threading.CancellationTokentoken

CreateUserAuthAsync(IUserAuth, String, CancellationToken)

View Source
Declaration
public Task<IUserAuth> CreateUserAuthAsync(IUserAuth newUser, string password, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
ServiceStack.Auth.IUserAuthnewUser
System.Stringpassword
System.Threading.CancellationTokentoken

UpdateUserAuthAsync(IUserAuth, IUserAuth, CancellationToken)

View Source
Declaration
public Task<IUserAuth> UpdateUserAuthAsync(IUserAuth existingUser, IUserAuth newUser, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
ServiceStack.Auth.IUserAuthexistingUser
ServiceStack.Auth.IUserAuthnewUser
System.Threading.CancellationTokentoken

UpdateUserAuthAsync(IUserAuth, IUserAuth, String, CancellationToken)

View Source
Declaration
public Task<IUserAuth> UpdateUserAuthAsync(IUserAuth existingUser, IUserAuth newUser, string password, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
ServiceStack.Auth.IUserAuthexistingUser
ServiceStack.Auth.IUserAuthnewUser
System.Stringpassword
System.Threading.CancellationTokentoken

GetUserAuthAsync(String, CancellationToken)

View Source
Declaration
public Task<IUserAuth> GetUserAuthAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
System.StringuserAuthId
System.Threading.CancellationTokentoken

DeleteUserAuthAsync(String, CancellationToken)

View Source
Declaration
public Task DeleteUserAuthAsync(string userAuthId, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.StringuserAuthId
System.Threading.CancellationTokentoken

InitSchema()

View Source
Declaration
public void InitSchema()

CreateUserAuth()

View Source
Declaration
public IUserAuth CreateUserAuth()
Returns

ServiceStack.Auth.IUserAuth

CreateUserAuthDetails()

View Source
Declaration
public IUserAuthDetails CreateUserAuthDetails()
Returns

ServiceStack.Auth.IUserAuthDetails

GetUserAuthsAsync(String, Nullable<Int32>, Nullable<Int32>, CancellationToken)

View Source
Declaration
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
TypeName
System.StringorderBy
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take
System.Threading.CancellationTokentoken

SearchUserAuthsAsync(String, String, Nullable<Int32>, Nullable<Int32>, CancellationToken)

View Source
Declaration
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
TypeName
System.Stringquery
System.StringorderBy
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take
System.Threading.CancellationTokentoken

Implements