Module: Trailblazer::Endpoint::Protocol::Standard::Handler

Defined in:
lib/trailblazer/endpoint/protocol.rb

Overview

TODO: allow translation.

Instance Method Summary collapse

Instance Method Details

#handle_not_authenticated(ctx, errors:) ⇒ Object



64
65
66
# 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:) ⇒ Object



60
61
62
# 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