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

Defined Under Namespace

Modules: ErrorMethods Classes: BadRequest, Code, Request, Response, 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

#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)
  request.profile.new(&@authenticator).call(env).finish
rescue Rack::OAuth2::Server::Abstract::Error => e
  e.finish
end