class

DoorCtrl::Application

Inherits ActionController::Base < ActionController::Responders < ActionController::Route::Builder < Reference < Object

Constants

Log = DoorCtrl::Log.for("controller")

Configure your log source name NOTE:: this is chaining from Log

PARSER_LIST = ["application/json"]
RESPONDER_LIST = ["application/json"]

Instance methods

bad_media_type(error) : AC::Error::ContentResponse

covers no acceptable response format and not an acceptable post format

Source
ensure_authenticated

check if authenticated

Source
invalid_param(error) : AC::Error::ParameterResponse

handles paramater missing or a bad paramater value / format

Source
set_request_id

This makes it simple to match client requests with server side logs. When building microservices this ID should be propagated to upstream services.

Source
unauthorized(_error) : Nil

requests basic authentication

Source