Keycloak realm add support for some missing options (#10538)

* First commit

* fixe

* changelog

---------

Co-authored-by: Andre Desrosiers <andre.desrosiers@ssss.gouv.qc.ca>
This commit is contained in:
desand01 2025-08-04 14:01:50 -04:00 committed by GitHub
commit 85f6a07b19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 183 additions and 0 deletions

View file

@ -510,6 +510,48 @@ options:
aliases:
- waitIncrementSeconds
type: int
client_session_idle_timeout:
description:
- All Clients will inherit from this setting, time a session is allowed to be idle before it expires.
aliases:
- clientSessionIdleTimeout
type: int
version_added: 11.2.0
client_session_max_lifespan:
description:
- All Clients will inherit from this setting, max time before a session is expired.
aliases:
- clientSessionMaxLifespan
type: int
version_added: 11.2.0
client_offline_session_idle_timeout:
description:
- All Clients will inherit from this setting, time an offline session is allowed to be idle before it expires.
aliases:
- clientOfflineSessionIdleTimeout
type: int
version_added: 11.2.0
client_offline_session_max_lifespan:
description:
- All Clients will inherit from this setting, max time before an offline session is expired regardless of activity.
aliases:
- clientOfflineSessionMaxLifespan
type: int
version_added: 11.2.0
oauth2_device_code_lifespan:
description:
- Max time before the device code and user code are expired.
aliases:
- oauth2DeviceCodeLifespan
type: int
version_added: 11.2.0
oauth2_device_polling_interval:
description:
- The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
aliases:
- oauth2DevicePollingInterval
type: int
version_added: 11.2.0
extends_documentation_fragment:
- community.general.keycloak
@ -710,6 +752,12 @@ def main():
user_managed_access_allowed=dict(type='bool', aliases=['userManagedAccessAllowed']),
verify_email=dict(type='bool', aliases=['verifyEmail']),
wait_increment_seconds=dict(type='int', aliases=['waitIncrementSeconds']),
client_session_idle_timeout=dict(type='int', aliases=['clientSessionIdleTimeout']),
client_session_max_lifespan=dict(type='int', aliases=['clientSessionMaxLifespan']),
client_offline_session_idle_timeout=dict(type='int', aliases=['clientOfflineSessionIdleTimeout']),
client_offline_session_max_lifespan=dict(type='int', aliases=['clientOfflineSessionMaxLifespan']),
oauth2_device_code_lifespan=dict(type='int', aliases=['oauth2DeviceCodeLifespan']),
oauth2_device_polling_interval=dict(type='int', aliases=['oauth2DevicePollingInterval']),
)
argument_spec.update(meta_args)