diff --git a/core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileConsumerImpl.java b/core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileConsumerImpl.java index d7a4cf435..43c052d29 100644 --- a/core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileConsumerImpl.java +++ b/core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileConsumerImpl.java @@ -233,6 +233,7 @@ public SAMLCredential processAuthenticationResponse(SAMLMessageContext context) Assert.notNull(context.getLocalDecrypter(), "Can't decrypt Assertion, no decrypter is set in the context"); log.debug("Decrypting assertion"); Assertion decryptedAssertion = context.getLocalDecrypter().decrypt(ea); + decryptedAssertion.setParent(response); assertionList.add(decryptedAssertion); } catch (DecryptionException e) { log.debug("Decryption of received assertion failed, assertion will be skipped", e);