2022-07-19 14:26:08 +02:00
|
|
|
---
|
|
|
|
|
2022-07-21 10:04:17 +02:00
|
|
|
- name: Create oidc-test OpenID Connect client configuration
|
|
|
|
template:
|
2022-07-21 11:21:56 +02:00
|
|
|
src: hydra-client.json.j2
|
|
|
|
dest: "/etc/hydra/clients.d/{{ item.client_id }}.json"
|
2022-07-21 10:04:17 +02:00
|
|
|
with_items:
|
2022-07-21 11:21:56 +02:00
|
|
|
- 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
|
|
|
|
|
2022-07-21 10:04:17 +02:00
|
|
|
notify:
|
|
|
|
- Restart cadoles-pod-hydra-v1
|
|
|
|
become: true
|
|
|
|
|
2022-07-19 14:26:08 +02:00
|
|
|
- name: Start oidc-test app
|
|
|
|
containers.podman.podman_container:
|
|
|
|
name: oidc-test
|
|
|
|
image: docker.io/bornholm/oidc-test:v0.0.0-2-gd0583cc
|
|
|
|
state: started
|
|
|
|
network: host
|
|
|
|
recreate: yes
|
|
|
|
env:
|
|
|
|
OIDC_CLIENT_ID: "{{ oidc_test_app_client_id }}"
|
|
|
|
OIDC_CLIENT_SECRET: "{{ oidc_test_app_client_secret }}"
|
|
|
|
LOG_LEVEL: 0
|
|
|
|
OIDC_ISSUER_URL: "http://{{ public_host }}/"
|
|
|
|
OIDC_REDIRECT_URL: "http://{{ public_host }}:8080"
|
|
|
|
OIDC_POST_LOGOUT_REDIRECT_URL: "http://{{ public_host }}:8080"
|
2022-07-21 10:04:17 +02:00
|
|
|
HTTP_ADDRESS: 0.0.0.0:8080
|
|
|
|
become: true
|