File tree Expand file tree Collapse file tree
Tests/DependencyInjection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ public function getConfigTreeBuilder()
120120 ->end ()
121121 ->booleanNode ('signMetadata ' )->end ()
122122 ->booleanNode ('wantXMLValidation ' )->end ()
123+ ->booleanNode ('relaxDestinationValidation ' )->end ()
124+ ->booleanNode ('destinationStrictlyMatches ' )
125+ ->defaultTrue ()
126+ ->end ()
127+ ->booleanNode ('rejectUnsolicitedResponsesWithInResponseTo ' )->end ()
123128 ->booleanNode ('lowercaseUrlencoding ' )->end ()
124129 ->scalarNode ('signatureAlgorithm ' )->end ()
125130 ->scalarNode ('digestAlgorithm ' )->end ()
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ hslavich_onelogin_saml:
3838 requestedAuthnContext : true
3939 signMetadata : false
4040 wantXMLValidation : false
41+ relaxDestinationValidation : false
42+ destinationStrictlyMatches : true
43+ rejectUnsolicitedResponsesWithInResponseTo : false
4144 signatureAlgorithm : ' http://www.w3.org/2000/09/xmldsig#rsa-sha1'
4245 contactPerson :
4346 technical :
Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ public function testLoadSecuritySettings(): void
5858 self ::assertTrue ($ settings ['security ' ]['requestedAuthnContext ' ]);
5959 self ::assertFalse ($ settings ['security ' ]['signMetadata ' ]);
6060 self ::assertFalse ($ settings ['security ' ]['wantXMLValidation ' ]);
61- self ::assertEquals ('http://www.w3.org/2000/09/xmldsig#rsa-sha1 ' , $ settings ['security ' ]['signatureAlgorithm ' ]);
61+ self ::assertEquals ('http://www.w3.org/2000/09/xmldsig#rsa-sha1 ' , $ settings ['security ' ]['signatureAlgorithm ' ]);
62+ self ::assertFalse ($ settings ['security ' ]['relaxDestinationValidation ' ]);
63+ self ::assertTrue ($ settings ['security ' ]['destinationStrictlyMatches ' ]);
64+ self ::assertFalse ($ settings ['security ' ]['rejectUnsolicitedResponsesWithInResponseTo ' ]);
6265 }
6366
6467 public function testLoadBasicSettings (): void
You can’t perform that action at this time.
0 commit comments