Sha256: 45666a7f1c14a646833860fb7ffbe7dd6a30c2c96dcf3b8075d3fc2ef55eda9e

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module OAuth
    class ClientCredentialsRequest < BaseRequest
      class Creator
        def call(client, scopes, attributes = {})
          AccessToken.find_or_create_for(
            client, nil, scopes, attributes[:expires_in],
            attributes[:use_refresh_token]
          )
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
doorkeeper-5.1.2 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.0.3 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.1.1 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.2.0.rc1 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.1.0 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.1.0.rc2 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.1.0.rc1 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.0.2 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.0.1 lib/doorkeeper/oauth/client_credentials/creator.rb