KEYCLOAK-1846 Per SAML spec 6.2 Encrypting assertions must happen after the assertions are signed
This commit is contained in:
parent
fe79c9b01e
commit
f55ab0d689
1 changed files with 4 additions and 2 deletions
|
@ -120,11 +120,12 @@ public class SAML2BindingBuilder2<T extends SAML2BindingBuilder2> {
|
|||
protected Document document;
|
||||
|
||||
public PostBindingBuilder(Document document) throws ProcessingException {
|
||||
if (encrypt) encryptDocument(document);
|
||||
this.document = document;
|
||||
if (signAssertions) {
|
||||
signAssertion(document);
|
||||
}
|
||||
//Per SAML spec 6.2 Encrypting assertions must happen after the assertions are signed
|
||||
if (encrypt) encryptDocument(document);
|
||||
if (sign) {
|
||||
signDocument(document);
|
||||
}
|
||||
|
@ -151,11 +152,12 @@ public class SAML2BindingBuilder2<T extends SAML2BindingBuilder2> {
|
|||
protected Document document;
|
||||
|
||||
public RedirectBindingBuilder(Document document) throws ProcessingException {
|
||||
if (encrypt) encryptDocument(document);
|
||||
this.document = document;
|
||||
if (signAssertions) {
|
||||
signAssertion(document);
|
||||
}
|
||||
//Per SAML spec 6.2 Encrypting assertions must happen after the assertions are signed
|
||||
if (encrypt) encryptDocument(document);
|
||||
}
|
||||
|
||||
public Document getDocument() {
|
||||
|
|
Loading…
Reference in a new issue