class KeycloakRack::Config

Configuration model for KeycloakRack.

Uses [anyway_config](github.com/palkan/anyway_config) to permit flexible approaches to configuration.

Public Instance Methods

build_x509_store() click to toggle source

@api private @!visibility private @return [OpenSSL::X509::Store]

# File lib/keycloak_rack/config.rb, line 75
def build_x509_store
  # :nocov:
  OpenSSL::X509::Store.new.tap do |store|
    store.set_default_paths
    store.add_file(ca_certificate_file) if ca_certificate_file.present?
  end
  # :nocov:
end
cache_ttl=(value) click to toggle source

required :server_url, :realm_id

Calls superclass method
# File lib/keycloak_rack/config.rb, line 60
def cache_ttl=(value)
  super Types::Coercible::Integer[value]
end
skip_paths=(value) click to toggle source
Calls superclass method
# File lib/keycloak_rack/config.rb, line 64
def skip_paths=(value)
  super Types::SkipPaths[value]
end
token_leeway=(value) click to toggle source
Calls superclass method
# File lib/keycloak_rack/config.rb, line 68
def token_leeway=(value)
  super Types::Coercible::Integer[value]
end