feat: opencloud group provisioning via oidc
Signed-off-by: Bert-Jan Fikse <bert-jan@whatwedo.ch>
This commit is contained in:
parent
6f4cc2bdb3
commit
aa8baad630
5 changed files with 37 additions and 0 deletions
|
|
@ -35,6 +35,12 @@ services:
|
|||
PROXY_CSP_CONFIG_FILE_OVERRIDE_LOCATION: "/etc/opencloud/csp-override.yaml"
|
||||
{% endif %}
|
||||
IDM_ADMIN_PASSWORD: "{{ opencloud_admin_password }}"
|
||||
{% if opencloud_role_assignment_driver == "oidc" %}
|
||||
PROXY_ROLE_ASSIGNMENT_DRIVER: "oidc"
|
||||
PROXY_ROLE_ASSIGNMENT_OIDC_CLAIM: "{{ opencloud_role_assignment_oidc_claim }}"
|
||||
GRAPH_ASSIGN_DEFAULT_USER_ROLE: "false"
|
||||
SETTINGS_SETUP_DEFAULT_ASSIGNMENTS: "false"
|
||||
{% endif %}
|
||||
{% if opencloud_oidc_issuer %}
|
||||
OC_OIDC_ISSUER: "{{ opencloud_oidc_issuer }}"
|
||||
OC_OIDC_CLIENT_ID: "{{ opencloud_oidc_client_id }}"
|
||||
|
|
|
|||
9
roles/opencloud/templates/proxy.yaml.j2
Normal file
9
roles/opencloud/templates/proxy.yaml.j2
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
role_assignment:
|
||||
driver: oidc
|
||||
oidc_role_mapper:
|
||||
role_claim: {{ opencloud_role_assignment_oidc_claim }}
|
||||
role_mapping:
|
||||
{% for mapping in opencloud_role_mapping %}
|
||||
- role_name: {{ mapping.role_name }}
|
||||
claim_value: "{{ mapping.claim_value }}"
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue