Method: Apill::Responses::InvalidToken.call
- Defined in:
- lib/apill/responses/invalid_token.rb
.call(_env, application_name:) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/apill/responses/invalid_token.rb', line 6 def self.call(_env, application_name:) error = Apill::Errors::InvalidToken.new [ error.http_status, # HTTP Status Code { # Response Headers 'WWW-Authenticate' => %Q{Token realm="#{application_name}"}, }, [error.to_json], # Message ] end |