Skip to content

fix signature validation issue#276

Merged
pitbulk merged 1 commit intoSAML-Toolkits:masterfrom
chenrui333:patch-1
Sep 2, 2020
Merged

fix signature validation issue#276
pitbulk merged 1 commit intoSAML-Toolkits:masterfrom
chenrui333:patch-1

Conversation

@chenrui333
Copy link
Copy Markdown
Contributor

fixes #275

byte[] dataBytes = x509cert.getEncoded();
if (alg == null || alg.isEmpty() || alg.equals("SHA-1")|| alg.equals("sha1")) {
fingerprint = DigestUtils.sha1Hex(dataBytes);
} else if (alg.equals("SHA-256") || alg .equals("sha256")) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pitbulk I have already tested in my local, that this does fix for my fingerprint validation check.

@pitbulk pitbulk merged commit c0375d8 into SAML-Toolkits:master Sep 2, 2020
@chenrui333
Copy link
Copy Markdown
Contributor Author

Thanks @pitbulk!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Signature validation failed. SAML Response rejected error

2 participants