Sha256: c2cf4f6533feee0921632748a93b057544cf89f8fd7396658a90d7a1d355b90a

Contents?: true

Size: 665 Bytes

Versions: 7

Compression:

Stored size: 665 Bytes

Contents

require 'stitches'

Stitches.configure do |configuration|
  # Regexp of urls that do not require ApiKeys or valid, versioned mime types
  configuration.allowlist_regexp = %r{\A/(resque|docs|assets)(\Z|/.*\Z)}

  # Name of the custom Authorization scheme.  See http://www.ietf.org/rfc/rfc2617.txt for details,
  # but generally should be a string with no spaces or special characters.
  configuration.custom_http_auth_scheme = "CustomKeyAuth"

  # Env var that gets the primary key of the authenticated ApiKey
  # for access in your controllers, so they don't need to re-parse the header
  # configuration.env_var_to_hold_api_client_primary_key = "YOUR_ENV_VAR"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stitches-3.8.3 lib/stitches/generator_files/config/initializers/stitches.rb
stitches-3.8.2 lib/stitches/generator_files/config/initializers/stitches.rb
stitches-3.8.1 lib/stitches/generator_files/config/initializers/stitches.rb
stitches-3.8.0 lib/stitches/generator_files/config/initializers/stitches.rb
stitches-3.7.3 lib/stitches/generator_files/config/initializers/stitches.rb
stitches-3.7.2 lib/stitches/generator_files/config/initializers/stitches.rb
stitches-3.7.0 lib/stitches/generator_files/config/initializers/stitches.rb