File tree Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ - Correct documentation for ` signing_algorithm ` and ` digest_algorithm ` configuration options.
4
+
3
5
## 7.5.2 (2025-02-10)
4
6
5
7
- Include the XSD of the XML Encryption Syntax and Processing Version 1.1 to the schema validator
Original file line number Diff line number Diff line change @@ -1369,27 +1369,34 @@ signing_algorithm
1369
1369
1370
1370
Default algorithm to be used. Example::
1371
1371
1372
- "service": {
1373
- "sp": {
1374
- "signing_algorithm": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512",
1375
- "digest_algorithm": "http://www.w3.org/2001/04/xmlenc#sha512",
1376
- }
1377
- }
1372
+ "signing_algorithm": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512",
1378
1373
1379
1374
1380
1375
digest_algorithm
1381
1376
"""""""""""""""""
1382
1377
1383
1378
Default algorithm to be used. Example::
1384
1379
1385
- "service": {
1386
- "idp": {
1387
- "signing_algorithm": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512",
1388
- "digest_algorithm": "http://www.w3.org/2001/04/xmlenc#sha512",
1389
- }
1380
+ "digest_algorithm": "http://www.w3.org/2001/04/xmlenc#sha512",
1381
+
1382
+ Note that previously the documentation suggested `signing_algorithm ` and
1383
+ `digest_algorithm ` configuration belong in the `service.idp ` or `service.sp ` section
1384
+ which was not correct.
1385
+
1386
+ There are constants for the identifiers of the algorithms in the `saml2.xmldsig ` module.
1387
+ For example::
1388
+
1389
+
1390
+ from saml2 import xmldsig
1391
+
1392
+ {
1393
+ "signing_algorithm": xmldsig.SIG_RSA_SHA256,
1394
+ "digest_algorithm": xmldsig.DIGEST_SHA256,
1395
+ ...
1390
1396
}
1391
1397
1392
1398
1399
+
1393
1400
logout_responses_signed
1394
1401
"""""""""""""""""""""""
1395
1402
You can’t perform that action at this time.
0 commit comments