Sha256: 45cce022af8a14ac4de3cffc5b400fc029981f3192de51bfe315c515057a261b
Contents?: true
Size: 500 Bytes
Versions: 24
Compression:
Stored size: 500 Bytes
Contents
module Doorkeeper module Request class Token # TODO: this is so wrong! def self.build(server) new(server.context.send(:pre_auth), server) end attr_accessor :pre_auth, :server def initialize(pre_auth, server) @pre_auth, @server = pre_auth, server end def request @request ||= OAuth::TokenRequest.new(pre_auth, server.current_resource_owner) end def authorize request.authorize end end end end
Version data entries
24 entries across 24 versions & 1 rubygems