Browse Source

__matrix_synapse: add --sso-template-dir parameter

pull/13/head
Timothée Floure 4 months ago
parent
commit
c32a1836aa
No known key found for this signature in database
GPG Key ID: 4502C902C00A1E12
  1. 2
      type/__matrix_synapse/files/homeserver.yaml.sh
  2. 3
      type/__matrix_synapse/man.rst
  3. 3
      type/__matrix_synapse/manifest
  4. 1
      type/__matrix_synapse/parameter/default/sso-template-dir
  5. 1
      type/__matrix_synapse/parameter/optional

2
type/__matrix_synapse/files/homeserver.yaml.sh

@ -2191,7 +2191,7 @@ sso:
# You can see the default templates at:
# https://github.com/matrix-org/synapse/tree/master/synapse/res/templates
#
#template_dir: "res/templates"
template_dir: "${SSO_TEMPLATE_DIR:?}"
# JSON web token integration. The following settings can be used to make

3
type/__matrix_synapse/man.rst

@ -205,6 +205,9 @@ saml2-mapping-provider-extra-settings
Extra YAML-formatted key/pair values provided as configuration to the SAML2
mapping provider module (e.g. 'key: value'). Can be specified multiple times.
sso-template-dir
Directory used to source SSO-related HTML templates.
extra-setting
Arbitrary string to be added to the configuration file. Can be specified multiple times.

3
type/__matrix_synapse/manifest

@ -220,6 +220,9 @@ if [ -f "$__object/parameter/saml2-mapping-provider-extra-config" ]; then
export SAML2_MAPPING_PROVIDER_EXTRA_CONFIG
fi
SSO_TEMPLATE_DIR=$(cat "$__object/parameter/sso-template-dir")
export SSO_TEMPLATE_DIR
if [ -n "$SAML2_SP_KEY" ] && [ -z "$SAML2_SP_CERT" ]; then
echo "--saml2-sp-cert must be set if --saml2-sp-key is provided." >&2
exit 1

1
type/__matrix_synapse/parameter/default/sso-template-dir

@ -0,0 +1 @@
res/template

1
type/__matrix_synapse/parameter/optional

@ -41,3 +41,4 @@ saml2-sp-key
saml2-sp-cert
default-identity-server
saml2-mapping-provider-module
sso-template-dir

Loading…
Cancel
Save