Class: Verikloak::Audience::Forbidden
- Defined in:
- lib/verikloak/audience/errors.rb
Overview
Raised when verified claims do not satisfy the configured profile. Typically emitted when the required audience list is empty or mismatches the token audiences.
Instance Method Summary collapse
-
#initialize(msg = 'insufficient audience') ⇒ Forbidden
constructor
Build a forbidden error with a customizable message while preserving the standard machine-friendly code and HTTP status.
Constructor Details
#initialize(msg = 'insufficient audience') ⇒ Forbidden
Build a forbidden error with a customizable message while preserving the standard machine-friendly code and HTTP status.
31 32 33 |
# File 'lib/verikloak/audience/errors.rb', line 31 def initialize(msg = 'insufficient audience') super(msg, code: 'insufficient_audience', http_status: 403) end |