Sha256: e6d713e11c7fc1548abb7700ac7d9a3272b5f688fba9612b52676685d01a3e7f

Contents?: true

Size: 309 Bytes

Versions: 20

Compression:

Stored size: 309 Bytes

Contents

module Doorkeeper
  module OAuth
    class ClientCredentialsRequest
      class Creator
        def call(client, scopes, attributes = {})
          AccessToken.create(attributes.merge(
            application_id: client.id,
            scopes: scopes.to_s
          ))
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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