Skip to content

Commit

Permalink
fix injecting realm settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Sep 16, 2024
1 parent b4ecbb0 commit e32cf5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions molecule/identity/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
- app_config_json.oauth2.redirectUri == adf_apps_contexts[item_index]
- app_config_json.oauth2.redirectUriLogout == adf_apps_contexts[item_index]
- app_config_json.oauth2.redirectSilentIframeUri == '{protocol}//{hostname}{:port}' ~ adf_apps_contexts[item_index] ~ 'assets/silent-refresh.html'
- app_config_json.oauth2.implicitFlow == false
- app_config_json.oauth2.codeFlow == true
fail_msg: "not expected {{ app_config_json }}"
loop: "{{ range(0, adf_apps | length) | list }}"
loop_control:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/acs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
identity_admin_username: admin
identity_admin_password: "{{ hostvars.localhost.identity_admin_password }}"
identity_keycloak_http_port: "{{ ports_cfg.identity.http }}"
identity_default_client_implicit_flow_enabled: "{{ not code_flow_pkce_supported }}"
when: not groups.external_identity | default([])
tasks:
- name: Configure Realm
Expand All @@ -145,6 +144,7 @@
identity_keycloak_http_port: "{{ ports_cfg.identity.http }}"
identity_known_urls:
- "{{ alfresco_url }}"
identity_default_client_implicit_flow_enabled: "{{ not code_flow_pkce_supported }}"
ansible.builtin.include_role:
name: "../roles/identity"
tasks_from: realm
Expand Down
15 changes: 9 additions & 6 deletions roles/identity/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,15 @@ argument_specs:
default: /auth
description:
Path relative to / for serving keycloak resources
identity_known_urls:
type: list
elements: str
default: []
description: |
A list of possible origin URLs which are allowed to interact with the configured realm
identity_url:
type: str
default:
description:
Set the base URL for frontend URL and admin console, including scheme, host, port and path.
Will override identity_keycloak_host, identity_keycloak_http_port.
realm:
short_description: Configure the keycloak realm
options:
identity_default_realm_id:
type: str
default: alfresco
Expand All @@ -65,3 +62,9 @@ argument_specs:
default: true
description: |
Enable or disable the implicit flow for the default client inside the default realm
identity_known_urls:
type: list
elements: str
default: []
description: |
A list of possible origin URLs which are allowed to interact with the configured realm

0 comments on commit e32cf5f

Please sign in to comment.