Sha256: 1e2d85e9c7ac12ae0f6921902f285703fd4084684b46867cacb121a8c9bd0c7c

Contents?: true

Size: 515 Bytes

Versions: 14

Compression:

Stored size: 515 Bytes

Contents

module Doorkeeper
  module Request
    class RefreshToken
      def self.build(server)
        new(server.current_refresh_token, server.client)
      end

      attr_accessor :refresh_token, :client

      def initialize(refresh_token, client)
        @refresh_token, @client = refresh_token, client
      end

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

      def authorize
        request.authorize
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
doorkeeper-0.7.4 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.7.3 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.7.2 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.7.1 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.7.0 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.7 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.6 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.5 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.4 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.3 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.2 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.1 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.0 lib/doorkeeper/request/refresh_token.rb
doorkeeper-0.6.0.rc1 lib/doorkeeper/request/refresh_token.rb