IAuthRepositoryAsync
Assembly: ServiceStack.dll
View Source
Declaration
public interface IAuthRepositoryAsync
Methods
LoadUserAuthAsync(IAuthSession, IAuthTokens, CancellationToken)
View Source
Declaration
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
Declaration
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
Declaration
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
Declaration
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
Declaration
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
Declaration
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
Declaration
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
Declaration
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
Declaration
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 |