Solved OIDC sociallogin bug

This commit is contained in:
2025-02-26 09:49:32 +01:00
parent 61eb9a3aed
commit ae1d7c785f
4 changed files with 12 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
- name: Flush all handlers immediately so that occ can be used
meta: flush_handlers
- name: enable oidc_login plugin
- name: disable oidc_login plugin
command: "docker exec -u www-data {{nextcloud_application_container_name}} {{nextcloud_docker_path}}occ app:disable oidc_login"
ignore_errors: true
when:
@@ -22,6 +22,7 @@
- name: Configure Sociallogin
loop: "{{ nextcloud_sociallogin_configuration}}"
# The | to_json function is necessary to escape custom_providers correct.
command: >
docker exec -u www-data {{ nextcloud_application_container_name }}
php occ config:app:set {{ item.appid }} {{ item.configkey }} --value "{{ item.configvalue }}"
php occ config:app:set {{ item.appid }} {{ item.configkey }} --value '{{ item.configvalue | to_json if item.configvalue is mapping else item.configvalue }}'