Sha256: 5cbb1411dfc536af2e0ab2b5261cdb34d2e0d4c242ed86aaaa900ebd8150dc8a

Contents?: true

Size: 451 Bytes

Versions: 10

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module Request
    class AuthorizationCode < Strategy
      delegate :client, :parameters, to: :server

      def request
        @request ||= OAuth::AuthorizationCodeRequest.new(
          Doorkeeper.configuration,
          grant,
          client,
          parameters
        )
      end

      private

      def grant
        AccessGrant.by_token(parameters[:code])
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
doorkeeper-5.1.2 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.0.3 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.1.1 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.2.0.rc2 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.2.0.rc1 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.1.0 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.1.0.rc2 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.1.0.rc1 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.0.2 lib/doorkeeper/request/authorization_code.rb
doorkeeper-5.0.1 lib/doorkeeper/request/authorization_code.rb