Skip to content

Commit

Permalink
Extra validation for signature
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 19, 2023
1 parent 29bb322 commit 328e808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.openconext</groupId>
<artifactId>saml-idp</artifactId>
<version>0.0.8-SNAPSHOT</version>
<version>1.0.0</version>
<name>saml-idp</name>

<properties>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/saml/DefaultSAMLService.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ private void validateSignature(SignableSAMLObject target, Credential credential,
throw new SignatureException("Signature element not found.");
}
} else {
//The docs state that implementations of SignaturePrevalidator do NOT perform the actual cryptographic validation of the signature against key material.
this.samlSignatureProfileValidator.validate(signature);
//For the actual cryptographic validation.
SignatureValidator.validate(signature, credential);
}
}

Expand Down

0 comments on commit 328e808

Please sign in to comment.