[mod] role:synapse:mas als authentication-Variante

This commit is contained in:
roydfalk 2024-10-17 18:35:04 +02:00
parent ecbbc24580
commit 9f833de139
4 changed files with 48 additions and 1 deletions

View file

@ -20,6 +20,12 @@
"var_synapse_authentication_data_authelia_client_id": "synapse",
"var_synapse_authentication_data_authelia_client_secret": "REPLACE_ME",
"var_synapse_authentication_data_authelia_url_base": "https://authelia.example.org",
"var_synapse_authentication_data_mas_url_base": "http://localhost:2839",
"var_synapse_authentication_data_mas_client_id": "synapse",
"var_synapse_authentication_data_mas_client_secret": "REPLACE_ME",
"var_synapse_authentication_data_mas_admin_token": "REPLACE_ME",
"var_synapse_authentication_data_mas_provider_id": "mas",
"var_synapse_authentication_data_mas_provider_name": "MAS",
"var_synapse_smtp_host": "smtp.example.org",
"var_synapse_smtp_port": 587,
"var_synapse_smtp_username": "synapse@smtp.example.org",

View file

@ -9,3 +9,4 @@ Zur Einrichtung des [matrix.org](https://matrix.org/)-Servers Synapse
- [GitHub-Repository](https://github.com/matrix-org/synapse)
- [Configuration Manual](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html)
- [Dokumentation | PostgreSQL](https://matrix-org.github.io/synapse/latest/postgres.html#using-postgres)
- [MAS-Dokumentation | Homeserver configuration](https://element-hq.github.io/matrix-authentication-service/setup/homeserver.html)

View file

@ -126,6 +126,21 @@ oidc_providers:
email_template: "{{"{{"}} user.email {{"}}"}}"
{% endif %}
{% if var_synapse_authentication_kind == 'mas' %}
enable_registration: false
enable_registration_without_verification: false
experimental_features:
msc3861:
enabled: true
issuer: "{{var_synapse_authentication_data_mas_url_base}}"
client_auth_method: client_secret_basic
client_id: "{{var_synapse_authentication_data_mas_client_id}}"
client_secret: "{{var_synapse_authentication_data_mas_client_secret}}"
admin_token: "{{var_synapse_authentication_data_mas_admin_token}}"
account_management_url: "{{var_synapse_authentication_data_mas_url_base}}/account"
{% endif %}
account_validity:
bcrypt_rounds: 12

View file

@ -71,7 +71,8 @@
"mandatory": false,
"options": [
"internal",
"authelia"
"authelia",
"mas"
]
},
"authentication_data_authelia_provider_id": {
@ -94,6 +95,30 @@
"type": "string",
"mandatory": false
},
"authentication_data_mas_url_base": {
"type": "string",
"mandatory": false
},
"authentication_data_mas_client_id": {
"type": "string",
"mandatory": false
},
"authentication_data_mas_client_secret": {
"type": "string",
"mandatory": false
},
"authentication_data_mas_admin_token": {
"type": "string",
"mandatory": false
},
"authentication_data_mas_provider_id": {
"type": "string",
"mandatory": false
},
"authentication_data_mas_provider_name": {
"type": "string",
"mandatory": false
},
"smtp_host": {
"type": "string",
"mandatory": false