class Doorkeeper::Request::Code

def pre_auth

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

def request

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