module

Pika::Auth

Constants

PATH_STRATEGIES = {} of String => Symbol

Per-path strategy overrides: path_prefix => strategy_name

PUBLIC_PATHS = [] of String

Paths that bypass auth entirely (public_resource)

STRATEGIES = {} of Symbol => Pika::Auth::Strategy

Registry: strategy_name => Strategy instance

Class methods

check!(env : HTTP::Server::Context, default : Symbol | Nil) : Nil

Authenticate the request against the applicable strategy. Call this from Pika's before hook.

Source
register(name : Symbol, strategy : Pika::Auth::Strategy)

Register a named strategy instance.

Source

Nested types