Sha256: 370c80c9b6e4b2b1ff2f3f5893dcfe8dd6fff75c46d884fd5b45dc07189ae356

Contents?: true

Size: 348 Bytes

Versions: 18

Compression:

Stored size: 348 Bytes

Contents

require 'doorkeeper/request/strategy'

module Doorkeeper
  module Request
    class Token < Strategy
      delegate :current_resource_owner, to: :server

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
doorkeeper-4.4.3 lib/doorkeeper/request/token.rb
doorkeeper-4.4.2 lib/doorkeeper/request/token.rb
doorkeeper-4.4.1 lib/doorkeeper/request/token.rb
doorkeeper-4.4.0 lib/doorkeeper/request/token.rb
doorkeeper-5.0.0.rc1 lib/doorkeeper/request/token.rb
doorkeeper-4.3.2 lib/doorkeeper/request/token.rb
doorkeeper-4.3.1 lib/doorkeeper/request/token.rb
doorkeeper-4.3.0 lib/doorkeeper/request/token.rb
doorkeeper-4.2.6 lib/doorkeeper/request/token.rb
doorkeeper-4.2.5 lib/doorkeeper/request/token.rb
doorkeeper-4.2.0 lib/doorkeeper/request/token.rb
doorkeeper-4.1.0 lib/doorkeeper/request/token.rb
doorkeeper-4.0.0 lib/doorkeeper/request/token.rb
doorkeeper-4.0.0.rc4 lib/doorkeeper/request/token.rb
doorkeeper-4.0.0.rc3 lib/doorkeeper/request/token.rb
doorkeeper-4.0.0.rc2 lib/doorkeeper/request/token.rb
doorkeeper-4.0.0.rc1 lib/doorkeeper/request/token.rb
doorkeeper-3.1.0 lib/doorkeeper/request/token.rb