Compare commits

...

3 Commits

Author SHA1 Message Date
Laurent Gourvenec 5bba8b978e goweb-oidc: get client password 2023-05-03 10:45:09 +02:00
Matthieu Lamalle e6f50cc01a update goweb-conf 2023-05-03 10:45:01 +02:00
Laurent Gourvenec 5187927b61 adding tasks for goweb-oidc 2023-04-18 11:44:34 +02:00
3 changed files with 43 additions and 1 deletions

View File

@ -47,6 +47,12 @@
state: restarted state: restarted
become: true become: true
- name: Restart cadoles-pod-goweb-oidc-v1
service:
name: cadoles-pod-goweb-oidc-v1
state: restarted
become: true
- name: Reload hydra clients - name: Reload hydra clients
ansible.builtin.include_tasks: ansible.builtin.include_tasks:
file: hydra-reload-clients.yml file: hydra-reload-clients.yml

22
tasks/goweb-oidc.yml Normal file
View File

@ -0,0 +1,22 @@
---
- name: Install cadoles-pod-goweb-oidc-v1 package
ansible.builtin.apt:
name:
- "cadoles-pod-goweb-oidc-v1={{ cadoles_pod_goweb_oidc_v1_package_version }}"
update_cache: yes
state: present
become: true
- name: Configure cadoles-pod-goweb-oidc-v1
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: "{{ item.mode }}"
with_items:
- src: cadoles-pod-goweb-oidc-v1.conf.j2
dest: /etc/cadoles-pod-goweb-oidc-v1.conf
mode: u=rw,g=r,o=r
notify:
- Restart cadoles-pod-goweb-oidc-v1
become: true

View File

@ -0,0 +1,14 @@
# {{ ansible_managed }}
PODMAN_ARGS="\
--name 'cadoles-pod-goweb-oidc-demo-v1' \
--replace \
-p 80:3002 \
-e LOG_LEVEL=0 \
-e HTTP_ADDRESS=0.0.0.0:3002 \
-e OIDC_CLIENT_ID=mse-demo \
-e OIDC_CLIENT_SECRET={{ hydra_clients|selectattr('client_id', 'equalto', 'mse-demo')|map(attribute='client_secret')|first }} \
-e OIDC_ISSUER_URL=https://pp.messervices.etudiant.gouv.fr/auth/ \
-e OIDC_REDIRECT_URL=https://auth.lescrous.fr/oauth2/callback \
-e OIDC_POST_LOGOUT_REDIRECT_URL=https://auth.lescrous.fr \
-e OIDC_ACR_VALUES= \
"