Sha256: d467f9ea9c8f473764d6fec93440128a8a333bdd08dac525d70f174f23c68503

Contents?: true

Size: 479 Bytes

Versions: 41

Compression:

Stored size: 479 Bytes

Contents

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

      attr_accessor :client, :server

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

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

      def authorize
        request.authorize
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
doorkeeper-3.0.1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.2.2 lib/doorkeeper/request/client_credentials.rb
doorkeeper-3.0.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-3.0.0.rc2 lib/doorkeeper/request/client_credentials.rb
doorkeeper-3.0.0.rc1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.2.1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.2.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.1.4 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.4.2 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.1.3 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.1.2 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.1.1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.1.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.0.1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.4.1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.0.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.0.0.rc3 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.0.0.rc2 lib/doorkeeper/request/client_credentials.rb
doorkeeper-2.0.0.alpha1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.4.0 lib/doorkeeper/request/client_credentials.rb