Class: Doorkeeper::Grape::AuthorizationDecorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/doorkeeper/grape/authorization_decorator.rb

Instance Method Summary collapse

Instance Method Details

#authorizationObject



10
11
12
13
14
15
16
# File 'lib/doorkeeper/grape/authorization_decorator.rb', line 10

def authorization
  env = __getobj__.env
  env["HTTP_AUTHORIZATION"] ||
    env["X-HTTP_AUTHORIZATION"] ||
    env["X_HTTP_AUTHORIZATION"] ||
    env["REDIRECT_X_HTTP_AUTHORIZATION"]
end

#parametersObject



6
7
8
# File 'lib/doorkeeper/grape/authorization_decorator.rb', line 6

def parameters
  params
end