class Rack::OAuth2::Server::Rails::Authorize

Public Class Methods

new(app) click to toggle source
# File lib/rack/oauth2/server/rails/authorize.rb, line 6
def initialize(app)
  super()
  @app = app
end

Public Instance Methods

_call(env) click to toggle source
# File lib/rack/oauth2/server/rails/authorize.rb, line 11
def _call(env)
  prepare_oauth_env env
  @app.call env
rescue Rack::OAuth2::Server::Abstract::Error => e
  e.finish
end