abstract class
Orion::Middleware::Auth
- Orion::Middleware::Auth
- Reference
- Object
Overview
Base authentication handler Extend this to create custom authentication strategies
Included Modules
- HTTP::Handler
Direct Known Subclasses
- Orion::Middleware::APIKeyAuth
- Orion::Middleware::BasicAuth
- Orion::Middleware::JWTAuth
- Orion::Middleware::SessionAuth
Defined in:
orion/middleware/auth.crInstance Method Summary
-
#authenticate(context : Orion::Server::Context) : Bool
Override this to implement authentication logic
- #call(context : HTTP::Server::Context)
-
#unauthorized_response(context : Orion::Server::Context)
Override to customize unauthorized response
Instance Method Detail
abstract
def authenticate(context : Orion::Server::Context) : Bool
#
Override this to implement authentication logic
def unauthorized_response(context : Orion::Server::Context)
#
Override to customize unauthorized response