Class: KeycloakRack::Config

Inherits:
Anyway::Config
  • Object
show all
Defined in:
lib/keycloak_rack/config.rb

Overview

Configuration model for KeycloakRack.

Uses anyway_config to permit flexible approaches to configuration.

Instance Attribute Summary collapse

Instance Attribute Details

#allow_anonymousBoolean

Returns:

  • (Boolean)

56
# File 'lib/keycloak_rack/config.rb', line 56

attr_config allow_anonymous: false

#ca_certificate_fileString?

The optional path to the CA Certificate to validate connections to a keycloak server.

Returns:

  • (String, nil)

32
# File 'lib/keycloak_rack/config.rb', line 32

attr_config :ca_certificate_file

#cache_ttlInteger

The interval (in seconds) that cached public keys in KeyResolver should be cached.

Returns:

  • (Integer)

48
# File 'lib/keycloak_rack/config.rb', line 48

attr_config cache_ttl: 86_400

#halt_on_auth_failureBoolean

Returns:

  • (Boolean)

52
# File 'lib/keycloak_rack/config.rb', line 52

attr_config halt_on_auth_failure: true

#realm_idString

Note:

Required config value

The ID of the realm used to authenticate requests.

Returns:

  • (String)

27
# File 'lib/keycloak_rack/config.rb', line 27

attr_config :realm_id

#server_urlString

Note:

Required config value

The URL of your Keycloak installation. Be sure to include /auth if necessary.

Returns:

  • (String)

19
# File 'lib/keycloak_rack/config.rb', line 19

attr_config :server_url

#skip_paths{ #to_s => <String, Regexp> }

Returns:

  • ({ #to_s => <String, Regexp> })

36
# File 'lib/keycloak_rack/config.rb', line 36

attr_config skip_paths: {}

#token_leewayInteger

The number of seconds to allow for tokens to be expired to allow for clock drift.


43
# File 'lib/keycloak_rack/config.rb', line 43

attr_config token_leeway: 10