Class: Rack::OAuth2::Server::Authorize

Inherits:
Rack::OAuth2::Server::Abstract::Handler show all
Defined in:
lib/rack/oauth2/server/authorize.rb,
lib/rack/oauth2/server/authorize/code.rb,
lib/rack/oauth2/server/authorize/error.rb,
lib/rack/oauth2/server/authorize/token.rb,
lib/rack/oauth2/server/authorize/extension.rb,
lib/rack/oauth2/server/authorize/extension/code_and_token.rb

Direct Known Subclasses

Rails::Authorize

Defined Under Namespace

Modules: ErrorHandler, ErrorMethods, Extension Classes: BadRequest, Code, Request, Response, ServerError, TemporarilyUnavailable, Token

Instance Attribute Summary

Attributes inherited from Rack::OAuth2::Server::Abstract::Handler

#authenticator, #request, #response

Instance Method Summary collapse

Methods inherited from Rack::OAuth2::Server::Abstract::Handler

#call, #initialize

Constructor Details

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

Instance Method Details

#_call(env) ⇒ Object



5
6
7
8
9
10
# File 'lib/rack/oauth2/server/authorize.rb', line 5

def _call(env)
  request = Request.new(env)
  response_type_for(request).new(&@authenticator)._call(env).finish
rescue Rack::OAuth2::Server::Abstract::Error => e
  e.finish
end