Skip to content

Commit

Permalink
ForceAuthn = true if Comparison is minimum and level is L1, fixes #94
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Greppi committed Jan 26, 2020
1 parent 459238e commit f3062e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spid/Saml/Out/AuthnRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ public function generateXml()
$assertID = $this->idp->assertID;
$attrID = $this->idp->attrID;
$level = $this->idp->level;
$force = $level > 1 ? "true" : "false";
if (isset($this->idp->sp->settings['sp_comparison'])) {
$comparison = $this->idp->sp->settings['sp_comparison'];
} else {
$comparison = "exact";
}
$force = ($level > 1 || $comparison == "minimum") ? "true" : "false";

$authnRequestXml = <<<XML
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
Expand Down

0 comments on commit f3062e9

Please sign in to comment.