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
57 58 59 |
# File 'lib/trailblazer/endpoint/protocol.rb', line 57 def handle_not_authenticated(ctx, errors:, **) errors. = "Authentication credentials were not provided or are invalid." end |
#handle_not_authorized(ctx, errors:) ⇒ Object
53 54 55 |
# File 'lib/trailblazer/endpoint/protocol.rb', line 53 def (ctx, errors:, **) errors. = "Action not allowed due to a policy setting." end |