module Trailblazer::Endpoint::Protocol::Standard::Handler

TODO: allow translation.

Public Instance Methods

handle_not_authenticated(ctx, errors:, **) click to toggle source
# File lib/trailblazer/endpoint/protocol.rb, line 64
def handle_not_authenticated(ctx, errors:, **)
  errors.message = "Authentication credentials were not provided or are invalid."
end
handle_not_authorized(ctx, errors:, **) click to toggle source
# File lib/trailblazer/endpoint/protocol.rb, line 60
def handle_not_authorized(ctx, errors:, **)
  errors.message = "Action not allowed due to a policy setting."
end