class

Sellia::Server::AuthProvider

Inherits Reference / Object

Simple auth provider - validates API keys In Tier 1, we support a single master key or no auth (for self-hosted)

Constructors

new(require_auth : Bool = false, master_key : String | Nil = nil)
Source

Instance methods

account_id_for(api_key : String) : String
Source
master_key
Source
master_key=(master_key : String | Nil)
Source
require_auth
Source
require_auth=(require_auth : Bool)
Source
validate(api_key : String) : Bool
Source