Exception: Rack::OAuth2::Server::Token::Unauthorized
- Inherits:
-
Abstract::Unauthorized
- Object
- StandardError
- Abstract::Error
- Abstract::Unauthorized
- Rack::OAuth2::Server::Token::Unauthorized
- 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
Methods inherited from Abstract::Error
Constructor Details
This class inherits a constructor from Rack::OAuth2::Server::Abstract::Unauthorized
Instance Method Details
#finish ⇒ Object
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 |