abstract class
Kemal::BasicAuth::Verifier
- Kemal::BasicAuth::Verifier
- Reference
- Object
Overview
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.
Direct Known Subclasses
Defined in:
kemal-basic-auth/verifier.crInstance Method Summary
-
#authorize?(username : String, password : String) : String | Nil
Returns the authorized username on success, or
nilotherwise.
Instance Method Detail
abstract
def authorize?(username : String, password : String) : String | Nil
#
Returns the authorized username on success, or nil otherwise.