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-1.3.1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.3.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.2.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.1.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.0.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.0.0.rc2 lib/doorkeeper/request/client_credentials.rb
doorkeeper-1.0.0.rc1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.7.4 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.7.3 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.7.2 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.7.1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.7.0 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.6.7 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.6.6 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.6.5 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.6.4 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.6.3 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.6.2 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.6.1 lib/doorkeeper/request/client_credentials.rb
doorkeeper-0.6.0 lib/doorkeeper/request/client_credentials.rb