update tests

This commit is contained in:
Guido Grazioli 2024-10-14 10:41:17 +02:00
commit be19ec1289
8 changed files with 857 additions and 17 deletions

View file

@ -19,7 +19,7 @@ Role Defaults
|`keycloak_management_http_port`| Management port | `9990` |
|`keycloak_auth_client`| Authentication client for configuration REST calls | `admin-cli` |
|`keycloak_client_public`| Configure a public realm client | `True` |
|`keycloak_client_web_origins`| Web origins for realm client | `+` |
|`keycloak_client_web_origins`| Web origins for realm client | `/*` |
|`keycloak_url`| URL for configuration rest calls | `http://{{ keycloak_host }}:{{ keycloak_http_port }}` |
|`keycloak_management_url`| URL for management console rest calls | `http://{{ keycloak_host }}:{{ keycloak_management_http_port }}` |

View file

@ -43,7 +43,7 @@ keycloak_client_default_roles: []
keycloak_client_public: true
# allowed web origins for the client
keycloak_client_web_origins: '+'
keycloak_client_web_origins: '/*'
# list of user and role mappings to create in the client
# Each user has the form:

View file

@ -53,7 +53,7 @@ argument_specs:
type: "bool"
keycloak_client_web_origins:
# line 42 of keycloak_realm/defaults/main.yml
default: "+"
default: "/*"
description: "Web origins for realm client"
type: "str"
keycloak_client_users:

View file

@ -82,7 +82,7 @@
base_url: "{{ item.base_url | default('') }}"
enabled: "{{ item.enabled | default(True) }}"
redirect_uris: "{{ item.redirect_uris | default(omit) }}"
web_origins: "{{ item.web_origins | default('+') }}"
web_origins: "{{ item.web_origins | default(omit) }}"
bearer_only: "{{ item.bearer_only | default(omit) }}"
standard_flow_enabled: "{{ item.standard_flow_enabled | default(omit) }}"
implicit_flow_enabled: "{{ item.implicit_flow_enabled | default(omit) }}"
@ -92,7 +92,7 @@
protocol: "{{ item.protocol | default(omit) }}"
attributes: "{{ item.attributes | default(omit) }}"
state: present
no_log: "{{ keycloak_no_log | default('True') }}"
no_log: "{{ keycloak_no_log | default('false') }}"
register: create_client_result
loop: "{{ keycloak_clients | flatten }}"
when: (item.name is defined and item.client_id is defined) or (item.name is defined and item.id is defined)