Skip to main content

IManageApiKeysAsync

Assembly: ServiceStack.dll
View Source
Declaration
public interface IManageApiKeysAsync

Methods

InitApiKeySchema()

View Source
Declaration
void InitApiKeySchema()

ApiKeyExistsAsync(String, CancellationToken)

View Source
Declaration
Task<bool> ApiKeyExistsAsync(string apiKey, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.StringapiKey
System.Threading.CancellationTokentoken

GetApiKeyAsync(String, CancellationToken)

View Source
Declaration
Task<ApiKey> GetApiKeyAsync(string apiKey, CancellationToken token = default(CancellationToken))
Returns

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

Parameters
TypeName
System.StringapiKey
System.Threading.CancellationTokentoken

GetUserApiKeysAsync(String, CancellationToken)

View Source
Declaration
Task<List<ApiKey>> GetUserApiKeysAsync(string userId, CancellationToken token = default(CancellationToken))
Returns

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

Parameters
TypeName
System.StringuserId
System.Threading.CancellationTokentoken

StoreAllAsync(IEnumerable<ApiKey>, CancellationToken)

View Source
Declaration
Task StoreAllAsync(IEnumerable<ApiKey> apiKeys, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.Generic.IEnumerable<ServiceStack.Auth.ApiKey>apiKeys
System.Threading.CancellationTokentoken