Class: Doorkeeper::Request::Token

Inherits:
Strategy
  • Object
show all
Defined in:
lib/doorkeeper/request/token.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/token.rb', line 8

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

#requestObject



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

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