mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
keycloak_realm.py: Fix the ssl_required
parameter according to the API (#2693)
* keycloak_realm.py: Fix the `ssl_required` parameter according to the API The `ssl_required` parameter is a string and must be one of 'all', 'external' or 'none'. Passing a bool will make the server return a 500. * fixup! keycloak_realm.py: Fix the `ssl_required` parameter according to the API * Update changelogs/fragments/keycloak_realm_ssl_required.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
fe5717c1aa
commit
efbda2389d
2 changed files with 6 additions and 2 deletions
3
changelogs/fragments/keycloak_realm_ssl_required.yml
Normal file
3
changelogs/fragments/keycloak_realm_ssl_required.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- keycloak_realm - ``ssl_required`` changed from a boolean type to accept the strings ``none``, ``external`` or ``all``. This is not a breaking change since the module always failed when a boolean was supplied (https://github.com/ansible-collections/community.general/pull/2693).
|
|
@ -439,9 +439,10 @@ options:
|
||||||
ssl_required:
|
ssl_required:
|
||||||
description:
|
description:
|
||||||
- The realm ssl required option.
|
- The realm ssl required option.
|
||||||
|
choices: ['all', 'external', 'none']
|
||||||
aliases:
|
aliases:
|
||||||
- sslRequired
|
- sslRequired
|
||||||
type: bool
|
type: str
|
||||||
sso_session_idle_timeout:
|
sso_session_idle_timeout:
|
||||||
description:
|
description:
|
||||||
- The realm sso session idle timeout.
|
- The realm sso session idle timeout.
|
||||||
|
@ -657,7 +658,7 @@ def main():
|
||||||
reset_password_allowed=dict(type='bool', aliases=['resetPasswordAllowed'], no_log=False),
|
reset_password_allowed=dict(type='bool', aliases=['resetPasswordAllowed'], no_log=False),
|
||||||
revoke_refresh_token=dict(type='bool', aliases=['revokeRefreshToken']),
|
revoke_refresh_token=dict(type='bool', aliases=['revokeRefreshToken']),
|
||||||
smtp_server=dict(type='dict', aliases=['smtpServer']),
|
smtp_server=dict(type='dict', aliases=['smtpServer']),
|
||||||
ssl_required=dict(type='bool', aliases=['sslRequired']),
|
ssl_required=dict(choices=["external", "all", "none"], aliases=['sslRequired']),
|
||||||
sso_session_idle_timeout=dict(type='int', aliases=['ssoSessionIdleTimeout']),
|
sso_session_idle_timeout=dict(type='int', aliases=['ssoSessionIdleTimeout']),
|
||||||
sso_session_idle_timeout_remember_me=dict(type='int', aliases=['ssoSessionIdleTimeoutRememberMe']),
|
sso_session_idle_timeout_remember_me=dict(type='int', aliases=['ssoSessionIdleTimeoutRememberMe']),
|
||||||
sso_session_max_lifespan=dict(type='int', aliases=['ssoSessionMaxLifespan']),
|
sso_session_max_lifespan=dict(type='int', aliases=['ssoSessionMaxLifespan']),
|
||||||
|
|
Loading…
Reference in a new issue