Exception: Rack::OAuth2::Server::Abstract::Unauthorized

Inherits:
Error
  • Object
show all
Defined in:
lib/rack/oauth2/server/abstract/error.rb

Direct Known Subclasses

Resource::Unauthorized, Token::Unauthorized

Instance Attribute Summary

Attributes inherited from Error

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

Instance Method Summary collapse

Methods inherited from Error

#finish, #protocol_params

Constructor Details

#initialize(error = :unauthorized, description = nil, options = {}) ⇒ Unauthorized

Returns a new instance of Unauthorized.



44
45
46
47
# File 'lib/rack/oauth2/server/abstract/error.rb', line 44

def initialize(error = :unauthorized, description = nil, options = {})
  @skip_www_authenticate = options[:skip_www_authenticate]
  super 401, error, description, options
end