Sha256: c31d53dbc3b668be989bb6419d5ef02e77512529ab38aec9ab9178041b267e0b

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

require 'doorkeeper/request/strategy'

module Doorkeeper
  module Request
    class Password < Strategy
      delegate :credentials, :resource_owner, :parameters, to: :server

      def request
        @request ||= OAuth::PasswordAccessTokenRequest.new(
          Doorkeeper.configuration,
          credentials,
          resource_owner,
          parameters
        )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
doorkeeper-4.0.0.rc3 lib/doorkeeper/request/password.rb
doorkeeper-4.0.0.rc2 lib/doorkeeper/request/password.rb
doorkeeper-4.0.0.rc1 lib/doorkeeper/request/password.rb
doorkeeper-3.1.0 lib/doorkeeper/request/password.rb