feat: allow custom hydra clients generation

This commit is contained in:
2022-07-21 11:21:56 +02:00
parent e3f5cf3f12
commit 20f5ef8faa
5 changed files with 39 additions and 23 deletions

View File

@ -51,6 +51,15 @@
- Restart HAProxy
become: true
- name: Create hydra-clients
template:
src: hydra-client.json.j2
dest: "/etc/hydra/clients.d/{{ item.client_id }}.json"
with_items: "{{ hydra_clients }}"
notify:
- Restart cadoles-pod-hydra-v1
become: true
- name: Configure cadoles-pod-hydra-v1
template:
src: "{{ item.src }}"

View File

@ -2,11 +2,16 @@
- name: Create oidc-test OpenID Connect client configuration
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
src: hydra-client.json.j2
dest: "/etc/hydra/clients.d/{{ item.client_id }}.json"
with_items:
- src: oidc-test-client.json.j2
dest: /etc/hydra/clients.d/oidc-test.json
- client_id: "{{ oidc_test_app_client_id }}"
client_secret: "{{ oidc_test_app_client_secret }}"
client_name: "OIDC Test"
redirect_uris: ["{{ public_scheme }}://{{ public_host }}:8080/oauth2/callback"]
post_logout_redirect_uris: ["{{ public_scheme }}://{{ public_host }}:8080"]
logo_uri: https://www.cadoles.com/images/logo.svg
notify:
- Restart cadoles-pod-hydra-v1
become: true