class

Kemal::BasicAuth::Verifier

Inherits Reference < Object

Strategy interface for authenticating a username/password pair.

Built-in implementations:

  • Credentials (plaintext, in-memory)

Custom verifiers (database-backed, bcrypt, proc-based, etc.) can subclass this and pass the instance to Handler.new.

Instance methods

authorize?(username : String, password : String) : String | Nil

Returns the authorized username on success, or nil otherwise.

Source