abstract class Orion::Middleware::Auth

Overview

Base authentication handler Extend this to create custom authentication strategies

Included Modules

Direct Known Subclasses

Defined in:

orion/middleware/auth.cr

Instance Method Summary

Instance Method Detail

abstract def authenticate(context : Orion::Server::Context) : Bool #

Override this to implement authentication logic


def call(context : HTTP::Server::Context) #

def unauthorized_response(context : Orion::Server::Context) #

Override to customize unauthorized response