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 }}"
|
2023-12-04 09:22:04 +01:00
|
|
|
client_uri: "{{ oidc_test_app_public_base_url }}"
|
2022-07-21 11:21:56 +02:00
|
|
|
client_name: "OIDC Test"
|
2022-07-21 14:19:23 +02:00
|
|
|
redirect_uris: ["{{ oidc_test_app_public_base_url }}/oauth2/callback"]
|
|
|
|
post_logout_redirect_uris: ["{{ oidc_test_app_public_base_url }}"]
|
2022-07-21 11:21:56 +02:00
|
|
|
logo_uri: https://www.cadoles.com/images/logo.svg
|
2022-07-21 10:04:17 +02:00
|
|
|
notify:
|
2022-07-22 12:12:09 +02:00
|
|
|
- Reload hydra clients
|
2022-07-21 10:04:17 +02:00
|
|
|
become: true
|
|
|
|
|
2022-07-19 14:26:08 +02:00
|
|
|
- name: Start oidc-test app
|
|
|
|
containers.podman.podman_container:
|
|
|
|
name: oidc-test
|
2022-08-10 17:46:19 +02:00
|
|
|
image: docker.io/bornholm/oidc-test:v0.0.0-6-g96f1f8f
|
2022-07-19 14:26:08 +02:00
|
|
|
state: started
|
|
|
|
network: host
|
2022-08-04 13:48:54 +02:00
|
|
|
restart_policy: on-failure
|
2022-07-19 14:26:08 +02:00
|
|
|
recreate: yes
|
2022-08-04 13:49:15 +02:00
|
|
|
timezone: local
|
2022-07-19 14:26:08 +02:00
|
|
|
env:
|
|
|
|
OIDC_CLIENT_ID: "{{ oidc_test_app_client_id }}"
|
|
|
|
OIDC_CLIENT_SECRET: "{{ oidc_test_app_client_secret }}"
|
|
|
|
LOG_LEVEL: 0
|
2022-07-21 14:19:23 +02:00
|
|
|
OIDC_ISSUER_URL: "{{ hydra_urls_self_issuer_url }}/"
|
|
|
|
OIDC_INSECURE_SKIP_VERIFY: true
|
|
|
|
OIDC_REDIRECT_URL: "{{ oidc_test_app_public_base_url }}"
|
|
|
|
OIDC_POST_LOGOUT_REDIRECT_URL: "{{ oidc_test_app_public_base_url }}"
|
2022-08-02 11:57:18 +02:00
|
|
|
HTTP_ADDRESS: 127.0.0.1:8080
|
|
|
|
HTTP_PUBLIC_BASE_URL: "{{ oidc_test_app_public_base_url }}"
|
2022-07-21 10:04:17 +02:00
|
|
|
become: true
|