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
Type | Name |
---|---|
System.String | apiKey |
System.Threading.CancellationToken | token |
GetApiKeyAsync(String, CancellationToken)
View Source
Declaration
Task<ApiKey> GetApiKeyAsync(string apiKey, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.ApiKey>
Parameters
Type | Name |
---|---|
System.String | apiKey |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
System.String | userId |
System.Threading.CancellationToken | token |
StoreAllAsync(IEnumerable<ApiKey>, CancellationToken)
View Source
Declaration
Task StoreAllAsync(IEnumerable<ApiKey> apiKeys, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<ServiceStack.Auth.ApiKey> | apiKeys |
System.Threading.CancellationToken | token |