abstract class Kemal::BasicAuth::Verifier

Overview

Strategy interface for authenticating a username/password pair.

Built-in implementations:

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.cr

Instance Method Summary

Instance Method Detail

abstract def authorize?(username : String, password : String) : String | Nil #

Returns the authorized username on success, or nil otherwise.


[View source]