[add] role:authelia-for-synapse

This commit is contained in:
Christian Fraß 2023-12-17 00:23:21 +01:00
parent e6021f4a9c
commit 21acd5c745
4 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,5 @@
{
"var_authelia_for_synapse_synapse_url_base": "https://matrix.example.org",
"var_authelia_for_synapse_client_id": "synapse",
"var_authelia_for_synapse_client_secret": "REPLACE_ME"
}

View file

@ -0,0 +1,9 @@
## Beschreibung
Um [Synapse](../synapse) gegen [Authelia](../authelia) authentifizieren zu lassen
## Verweise
- [Authelia-Dokumentation | Synapse Integration](https://www.authelia.com/integration/openid-connect/synapse/)
- [Synapse-Dokumentation | OpenID Connect](https://matrix-org.github.io/synapse/latest/openid.html)

View file

@ -0,0 +1,25 @@
[
{
"name": "configuration | emplace",
"become": true,
"ansible.builtin.template": {
"src": "authelia-client-conf.json.j2",
"dest": "/etc/authelia/conf.d/clients/synapse.json"
}
},
{
"name": "configuration | apply",
"become": true,
"ansible.builtin.command": {
"cmd": "/usr/bin/authelia-conf-compose"
}
},
{
"name": "restart service",
"become": true,
"ansible.builtin.systemd_service": {
"state": "restarted",
"name": "authelia"
}
}
]

View file

@ -0,0 +1,16 @@
{
"id": "{{var_authelia_for_synapse_client_id}}",
"description": "Synapse",
"secret": "{{var_authelia_for_synapse_client_secret}}",
"public": false,
"authorization_policy": "one_factor",
"redirect_uris": [
"{{var_authelia_for_synapse_synapse_url_base}}/_synapse/client/oidc/callback"
],
"scopes": [
"openid",
"email",
"profile"
],
"userinfo_signing_algorithm": "none"
}