Sha256: 6eea7c97ab2f5018ba64b18bac425f03956e6507437b867a05ee9d33a9d2233c
Contents?: true
Size: 579 Bytes
Versions: 3
Compression:
Stored size: 579 Bytes
Contents
module MarketoApi module Concerns module Authentication # Public: Force an authentication def authenticate! unless authentication_middleware fail AuthenticationError.new('No authentication middleware present') end middleware = authentication_middleware.new nil, self, options middleware.authenticate! end # Internal: Determines what middleware will be used based on the options provided def authentication_middleware MarketoApi::Middleware::Authentication::Token end end end end
Version data entries
3 entries across 3 versions & 1 rubygems