Skip to content

SamlResponse.decryptAssertion, logical error #420

@rudolphi

Description

@rudolphi

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions