Class: Verikloak::BFF::HeaderMismatchError

Inherits:
Error
  • Object
show all
Defined in:
lib/verikloak/bff/errors.rb

Overview

Raised when Authorization and X-Forwarded-Access-Token both exist and differ.

Instance Attribute Summary

Attributes inherited from Error

#code, #http_status

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'authorization and forwarded token mismatch') ⇒ void

Parameters:

  • msg (String) (defaults to: 'authorization and forwarded token mismatch')


50
51
52
# File 'lib/verikloak/bff/errors.rb', line 50

def initialize(msg = 'authorization and forwarded token mismatch')
  super(msg, code: 'header_mismatch', http_status: 401)
end