Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1391723

Browse files
authored
Fix indention in generated config file (#7300)
Also adjust sample_config.yaml Signed-off-by: Lars Franke <frcl@mailbox.org>
1 parent f5ea8b4 commit 1391723

3 files changed

Lines changed: 49 additions & 48 deletions

File tree

changelog.d/7300.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix sample SAML Service Provider configuration. Contributed by @frcl.

docs/sample_config.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,32 +1339,32 @@ saml2_config:
13391339
# remote:
13401340
# - url: https://our_idp/metadata.xml
13411341
#
1342-
# # By default, the user has to go to our login page first. If you'd like
1343-
# # to allow IdP-initiated login, set 'allow_unsolicited: true' in a
1344-
# # 'service.sp' section:
1345-
# #
1346-
# #service:
1347-
# # sp:
1348-
# # allow_unsolicited: true
1349-
#
1350-
# # The examples below are just used to generate our metadata xml, and you
1351-
# # may well not need them, depending on your setup. Alternatively you
1352-
# # may need a whole lot more detail - see the pysaml2 docs!
1353-
#
1354-
# description: ["My awesome SP", "en"]
1355-
# name: ["Test SP", "en"]
1356-
#
1357-
# organization:
1358-
# name: Example com
1359-
# display_name:
1360-
# - ["Example co", "en"]
1361-
# url: "http://example.com"
1362-
#
1363-
# contact_person:
1364-
# - given_name: Bob
1365-
# sur_name: "the Sysadmin"
1366-
# email_address": ["admin@example.com"]
1367-
# contact_type": technical
1342+
# # By default, the user has to go to our login page first. If you'd like
1343+
# # to allow IdP-initiated login, set 'allow_unsolicited: true' in a
1344+
# # 'service.sp' section:
1345+
# #
1346+
# #service:
1347+
# # sp:
1348+
# # allow_unsolicited: true
1349+
#
1350+
# # The examples below are just used to generate our metadata xml, and you
1351+
# # may well not need them, depending on your setup. Alternatively you
1352+
# # may need a whole lot more detail - see the pysaml2 docs!
1353+
#
1354+
# description: ["My awesome SP", "en"]
1355+
# name: ["Test SP", "en"]
1356+
#
1357+
# organization:
1358+
# name: Example com
1359+
# display_name:
1360+
# - ["Example co", "en"]
1361+
# url: "http://example.com"
1362+
#
1363+
# contact_person:
1364+
# - given_name: Bob
1365+
# sur_name: "the Sysadmin"
1366+
# email_address": ["admin@example.com"]
1367+
# contact_type": technical
13681368

13691369
# Instead of putting the config inline as above, you can specify a
13701370
# separate pysaml2 configuration file:

synapse/config/saml2_config.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -248,32 +248,32 @@ def generate_config_section(self, config_dir_path, server_name, **kwargs):
248248
# remote:
249249
# - url: https://our_idp/metadata.xml
250250
#
251-
# # By default, the user has to go to our login page first. If you'd like
252-
# # to allow IdP-initiated login, set 'allow_unsolicited: true' in a
253-
# # 'service.sp' section:
254-
# #
255-
# #service:
256-
# # sp:
257-
# # allow_unsolicited: true
251+
# # By default, the user has to go to our login page first. If you'd like
252+
# # to allow IdP-initiated login, set 'allow_unsolicited: true' in a
253+
# # 'service.sp' section:
254+
# #
255+
# #service:
256+
# # sp:
257+
# # allow_unsolicited: true
258258
#
259-
# # The examples below are just used to generate our metadata xml, and you
260-
# # may well not need them, depending on your setup. Alternatively you
261-
# # may need a whole lot more detail - see the pysaml2 docs!
259+
# # The examples below are just used to generate our metadata xml, and you
260+
# # may well not need them, depending on your setup. Alternatively you
261+
# # may need a whole lot more detail - see the pysaml2 docs!
262262
#
263-
# description: ["My awesome SP", "en"]
264-
# name: ["Test SP", "en"]
263+
# description: ["My awesome SP", "en"]
264+
# name: ["Test SP", "en"]
265265
#
266-
# organization:
267-
# name: Example com
268-
# display_name:
269-
# - ["Example co", "en"]
270-
# url: "http://example.com"
266+
# organization:
267+
# name: Example com
268+
# display_name:
269+
# - ["Example co", "en"]
270+
# url: "http://example.com"
271271
#
272-
# contact_person:
273-
# - given_name: Bob
274-
# sur_name: "the Sysadmin"
275-
# email_address": ["admin@example.com"]
276-
# contact_type": technical
272+
# contact_person:
273+
# - given_name: Bob
274+
# sur_name: "the Sysadmin"
275+
# email_address": ["admin@example.com"]
276+
# contact_type": technical
277277
278278
# Instead of putting the config inline as above, you can specify a
279279
# separate pysaml2 configuration file:

0 commit comments

Comments
 (0)