Commit 49fb3cd
authored
Fixes to encryption optional (#2254)
The new feature from f99217b only worked if a signing cert was
present. With no certs present, getPublicKeys threw an exception.
Fixed the call from encryptAssertion to getPublicKeys to not
require that a key be returned.
Also fixed logic in getPublicKeys
in Configuration.php. Previous logic would return an empty array if
a use type was passed in but no keys of that type were found even if
required was set to true. Thus, the encryptAssertion bug didn't appear
until we had an SP with no certs at all rather than just one without an
encryption cert.1 parent ff5b76a commit 49fb3cd
File tree
2 files changed
+8
-3
lines changed- modules/saml/src/IdP
- src/SimpleSAML
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | | - | |
| 1439 | + | |
1440 | 1440 | | |
1441 | 1441 | | |
1442 | 1442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1415 | 1415 | | |
1416 | 1416 | | |
1417 | 1417 | | |
1418 | | - | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1419 | 1421 | | |
1420 | 1422 | | |
1421 | 1423 | | |
| |||
1460 | 1462 | | |
1461 | 1463 | | |
1462 | 1464 | | |
1463 | | - | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
1464 | 1469 | | |
1465 | 1470 | | |
1466 | 1471 | | |
| |||
0 commit comments