Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SamlResponse.decryptAssertion, logical error #420

Open
rudolphi opened this issue May 30, 2024 · 0 comments
Open

SamlResponse.decryptAssertion, logical error #420

rudolphi opened this issue May 30, 2024 · 0 comments

Comments

@rudolphi
Copy link

com.onelogin.saml2.authn.SamlResponse:1221-1225
NodeList AssertionDataNodes = Util.query(dom, "/samlp:Response/saml:EncryptedAssertion/saml:Assertion"); if (encryptedDataNodes.getLength() == 0) { throw new ValidationError("No /samlp:Response/saml:EncryptedAssertion/saml:Assertion element found", ValidationError.MISSING_ENCRYPTED_ELEMENT); } Node assertionNode = AssertionDataNodes.item(0);

should say

NodeList assertionDataNodes = Util.query(dom, "/samlp:Response/saml:EncryptedAssertion/saml:Assertion"); if (assertionDataNodes.getLength() == 0) { throw new ValidationError("No /samlp:Response/saml:EncryptedAssertion/saml:Assertion element found", ValidationError.MISSING_ENCRYPTED_ELEMENT); } Node assertionNode = assertionDataNodes.item(0);
(coding style and logical/copy&paste error)

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

No branches or pull requests

1 participant