Skip to main content

IManageApiKeys

The Interface Auth Repositories need to implement to support API Keys

Assembly: ServiceStack.dll
View Source
Declaration
public interface IManageApiKeys

Methods

InitApiKeySchema()

View Source
Declaration
void InitApiKeySchema()

ApiKeyExists(String)

View Source
Declaration
bool ApiKeyExists(string apiKey)
Returns

System.Boolean

Parameters
TypeName
System.StringapiKey

GetApiKey(String)

View Source
Declaration
ApiKey GetApiKey(string apiKey)
Returns

ServiceStack.Auth.ApiKey

Parameters
TypeName
System.StringapiKey

GetUserApiKeys(String)

View Source
Declaration
List<ApiKey> GetUserApiKeys(string userId)
Returns

System.Collections.Generic.List<ServiceStack.Auth.ApiKey>

Parameters
TypeName
System.StringuserId

StoreAll(IEnumerable<ApiKey>)

View Source
Declaration
void StoreAll(IEnumerable<ApiKey> apiKeys)
Parameters
TypeName
System.Collections.Generic.IEnumerable<ServiceStack.Auth.ApiKey>apiKeys