Exception: Rack::OAuth2::Server::Token::Unauthorized

Inherits:
Abstract::Unauthorized show all
Defined in:
lib/rack/oauth2/server/token/error.rb

Instance Attribute Summary

Attributes inherited from Abstract::Error

#description, #error, #realm, #status, #uri

Instance Method Summary collapse

Methods inherited from Abstract::Unauthorized

#initialize

Methods inherited from Abstract::Error

#initialize, #protocol_params

Constructor Details

This class inherits a constructor from Rack::OAuth2::Server::Abstract::Unauthorized

Instance Method Details

#finishObject



9
10
11
12
13
14
15
# File 'lib/rack/oauth2/server/token/error.rb', line 9

def finish
  super do |response|
    unless @skip_www_authenticate
      response.headers['WWW-Authenticate'] = 'Basic realm="OAuth2 Token Endpoint"'
    end
  end
end