class

KemalcrStarter::Modules::ApiKeys::ApiKeyService

Inherits Reference < Object

Constructors

new(settings : Core::Config::Settings, database : DB::Database, event_repository : Infrastructure::DB::OutboxEventRepository | Nil = nil, rbac_service : Core::Rbac::AuthorizationService | Nil = nil)
Source

Instance methods

authenticate(secret : String) : AuthenticatedApiKey
Source
count_for_organization(organization_id : String) : Int64
Source
create_for_actor(actor_id : String, organization_id : String, name : String)
Source
list_for_actor(actor_id : String, organization_id : String, limit : Int32 = 1000, offset : Int32 = 0)
Source
revoke_for_actor(actor_id : String, organization_id : String, api_key_id : String) : Nil
Source