Skip to content

Commit 1844bf3

Browse files
authored
Update setup.rst (#307)
The document has something wrong in PySAML2 specific files and configuration: https://djangosaml2.readthedocs.io/contents/setup.html#pysaml2-specific-files-and-configuration The example put `allow_unknown_attributes` in `service.sp`, however, in pysaml2, `allow_unknown_attributes` is at root level, since `allow_unknown_attributes` was put at `COMMON_ARGS`: https://github.com/IdentityPython/pysaml2/blob/master/src/saml2/config.py
1 parent 9d975f7 commit 1844bf3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/contents/setup.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,10 @@ settings.py file under the SAML_CONFIG option. We will see a typical configurati
465465
# directory with attribute mapping
466466
'attribute_map_dir': path.join(BASEDIR, 'attribute-maps'),
467467

468+
# Permits to have attributes not configured in attribute-mappings
469+
# otherwise...without OID will be rejected
470+
'allow_unknown_attributes': True,
471+
468472
# this block states what services we provide
469473
'service': {
470474
# we are just a lonely SP
@@ -526,10 +530,6 @@ settings.py file under the SAML_CONFIG option. We will see a typical configurati
526530
# a respective SAML Authentication Request.
527531
'allow_unsolicited': False,
528532

529-
# Permits to have attributes not configured in attribute-mappings
530-
# otherwise...without OID will be rejected
531-
'allow_unknown_attributes': True,
532-
533533
# in this section the list of IdPs we talk to are defined
534534
# This is not mandatory! All the IdP available in the metadata will be considered instead.
535535
'idp': {

0 commit comments

Comments
 (0)