ansible-role-sso/tasks/oidc-test.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-19 14:26:08 +02:00
---
- name: Create oidc-test OpenID Connect client configuration
template:
src: hydra-client.json.j2
dest: "/etc/hydra/clients.d/{{ item.client_id }}.json"
with_items:
- 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
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"
HTTP_ADDRESS: 0.0.0.0:8080
become: true