Sha256: b6baea54f6dba0e27cec1c69866dee592030a28c5a27959b434829fac12e64b1

Contents?: true

Size: 336 Bytes

Versions: 11

Compression:

Stored size: 336 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
doorkeeper-4.4.3 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-4.4.2 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-4.4.1 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.0.0.rc2 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-4.4.0 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-5.0.0.rc1 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-4.3.2 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-4.3.1 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-4.3.0 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-4.2.6 lib/doorkeeper/oauth/client_credentials/creator.rb
doorkeeper-4.2.5 lib/doorkeeper/oauth/client_credentials/creator.rb