Class: KeycloakRack::Config
- Inherits:
-
Anyway::Config
- Object
- Anyway::Config
- KeycloakRack::Config
- 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
- #allow_anonymous ⇒ Boolean
-
#ca_certificate_file ⇒ String?
The optional path to the CA Certificate to validate connections to a keycloak server.
-
#cache_ttl ⇒ Integer
The interval (in seconds) that cached public keys in KeyResolver should be cached.
- #halt_on_auth_failure ⇒ Boolean
-
#realm_id ⇒ String
The ID of the realm used to authenticate requests.
-
#server_url ⇒ String
The URL of your Keycloak installation.
- #skip_paths ⇒ { #to_s => <String, Regexp> }
-
#token_leeway ⇒ Integer
The number of seconds to allow for tokens to be expired to allow for clock drift.
Instance Attribute Details
#allow_anonymous ⇒ Boolean
56 |
# File 'lib/keycloak_rack/config.rb', line 56 attr_config allow_anonymous: false |
#ca_certificate_file ⇒ String?
The optional path to the CA Certificate to validate connections to a keycloak server.
32 |
# File 'lib/keycloak_rack/config.rb', line 32 attr_config :ca_certificate_file |
#cache_ttl ⇒ Integer
The interval (in seconds) that cached public keys in KeyResolver should be cached.
48 |
# File 'lib/keycloak_rack/config.rb', line 48 attr_config cache_ttl: 86_400 |
#halt_on_auth_failure ⇒ Boolean
52 |
# File 'lib/keycloak_rack/config.rb', line 52 attr_config halt_on_auth_failure: true |
#realm_id ⇒ String
Required config value
The ID of the realm used to authenticate requests.
27 |
# File 'lib/keycloak_rack/config.rb', line 27 attr_config :realm_id |
#server_url ⇒ String
Required config value
The URL of your Keycloak installation. Be sure to include /auth
if necessary.
19 |
# File 'lib/keycloak_rack/config.rb', line 19 attr_config :server_url |
#skip_paths ⇒ { #to_s => <String, Regexp> }
36 |
# File 'lib/keycloak_rack/config.rb', line 36 attr_config skip_paths: {} |
#token_leeway ⇒ Integer
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 |