Skip to content

Commit 27e6743

Browse files
kavi87jzheaux
authored andcommitted
Update saml2-login.adoc
Fix example on registering custom marshaller for saml request
1 parent e79141a commit 27e6743

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,15 @@ static {
219219
220220
public Element marshall(XMLObject object, Document document) throws MarshallingException {
221221
configureAuthnRequest((AuthnRequest) object);
222-
return super.marshall(object, element);
222+
return super.marshall(object, document);
223223
}
224224
225225
private void configureAuthnRequest(AuthnRequest authnRequest) {
226226
authnRequest.setForceAuthN(true);
227227
}
228228
}
229+
230+
factory.getMarshallerFactory().registerMarshaller(AuthnRequest.DEFAULT_ELEMENT_NAME, marshaller);
229231
});
230232
}
231233
----

0 commit comments

Comments
 (0)