Sha256: dedfa456c486f726e455cdc0f8c1b8d455c3a0fe3d283bab56422a14b574a6c5

Contents?: true

Size: 459 Bytes

Versions: 18

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

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

      def refresh_token
        AccessToken.by_refresh_token(parameters[:refresh_token])
      end

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
doorkeeper-5.1.2 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.6 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.0.3 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.1.1 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.5 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.4 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.3 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.2 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.1 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.0 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.0.rc3 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.0.rc2 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.2.0.rc1 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.1.0 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.1.0.rc2 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.1.0.rc1 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.0.2 lib/doorkeeper/request/refresh_token.rb
doorkeeper-5.0.1 lib/doorkeeper/request/refresh_token.rb