Sha256: aad5580a4f0dfb21dcd6af36cfab85758b2e144920c0c7439a54d9e7b57a0ad3
Contents?: true
Size: 995 Bytes
Versions: 19
Compression:
Stored size: 995 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" # Configures how long to cache ApiKeys in memory (In Seconds) # A value of 0 will disable the cache entierly # Default is 0 # configuration.max_cache_ttl = 5 # Configures how many ApiKeys to cache at one time # This should be larger then the number of clients # Default is 0 # configuration.max_cache_size = 100 end
Version data entries
19 entries across 13 versions & 1 rubygems