Files
computer-playbook/roles/web-app-wordpress/meta/addons/daggerhart-openid-connect-generic.yml
kevinveenbirkenbachandClaude Opus 4.8 226d5b5366 feat(wordpress): migrate plugins to meta/addons (req 026)
plugin/mu_plugin addons declared; daggerhart OIDC + rbac-mapper bridge sso, wp-discourse bridges discourse. Settings absorbed from vars/oidc.yml + vars/discourse.yml (deleted); wp-discourse task uses include_vars for the runtime vault key.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 11:30:45 +02:00

38 lines
1.3 KiB
YAML

---
enabled: "{{ lookup('config', 'web-app-wordpress', 'services.sso.enabled') | bool }}"
required: false
mechanism: plugin
source: upstream
bridges:
- sso
update:
monitored: true
catalog: wordpress-org
upstream_id: daggerhart-openid-connect-generic
config:
oidc_settings:
client_id: "{{ OIDC.CLIENT.ID }}"
client_secret: "{{ OIDC.CLIENT.SECRET }}"
issuer: "{{ OIDC.CLIENT.ISSUER_URL }}"
endpoint_login: "{{ OIDC.CLIENT.AUTHORIZE_URL }}"
endpoint_token: "{{ OIDC.CLIENT.TOKEN_URL }}"
endpoint_userinfo: "{{ OIDC.CLIENT.USER_INFO_URL }}"
endpoint_jwks: "{{ OIDC.CLIENT.CERTS }}"
endpoint_end_session: "{{ OIDC.CLIENT.LOGOUT_URL }}"
login_type: "auto"
scope: "openid profile email {{ RBAC.GROUP.CLAIM }}"
create_if_does_not_exist: true
enforce_privacy: false
link_existing_users: true
redirect_on_logout: true
redirect_user_back: true
enable_logging: "{{ MODE_DEBUG }}"
no_sslverify: false
http_request_timeout: 5
identity_key: "{{ OIDC.ATTRIBUTES.USERNAME }}"
nickname_key: "{{ OIDC.ATTRIBUTES.USERNAME }}"
email_format: "{{ OIDC.ATTRIBUTES.EMAIL }}"
displayname_format: "{{ OIDC.ATTRIBUTES.GIVEN_NAME }} {{ OIDC.ATTRIBUTES.FAMILY_NAME }}"
identify_with_username: true
state_time_limit: 180