Class: Doorkeeper::Request::Code

Inherits:
Strategy
  • Object
show all
Defined in:
lib/doorkeeper/request/code.rb

Instance Attribute Summary

Attributes inherited from Strategy

#server

Instance Method Summary collapse

Methods inherited from Strategy

#initialize

Constructor Details

This class inherits a constructor from Doorkeeper::Request::Strategy

Instance Method Details

#pre_authObject


8
9
10
# File 'lib/doorkeeper/request/code.rb', line 8

def pre_auth
  server.context.send(:pre_auth)
end

#requestObject


12
13
14
# File 'lib/doorkeeper/request/code.rb', line 12

def request
  @request ||= OAuth::CodeRequest.new(pre_auth, current_resource_owner)
end