Sha256: 7abfb51a978cea3227488a35f48c12a8515e9bbef62d8ced3f8d6f9e785b153b

Contents?: true

Size: 358 Bytes

Versions: 30

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  class ArkivoConstraint
    def self.matches?(_request)
      # Add your own logic here to authorize trusted connections to
      # the API e.g., if your installation of Arkivo runs on a host
      # with the 10.0.0.3 IP address, you could use:
      # request.remote_ip == '10.0.0.3'
      true
    end
  end
end

Version data entries

30 entries across 25 versions & 1 rubygems

Version Path
hyrax-3.4.1 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.4.0 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.3.0 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.2.0 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.1.0 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.0.2 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.0.1 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.0.0 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.0.0.pre.rc4 .dassie/config/initializers/arkivo_constraint.rb
hyrax-3.0.0.pre.rc3 .dassie/config/initializers/arkivo_constraint.rb