Update saml2-login.adoc

Fix example on registering custom marshaller for saml request
This commit is contained in:
kavi87
2021-02-04 17:54:09 +01:00
committed by Josh Cummings
parent e79141a188
commit 27e6743fd6

View File

@@ -219,13 +219,15 @@ static {
public Element marshall(XMLObject object, Document document) throws MarshallingException {
configureAuthnRequest((AuthnRequest) object);
return super.marshall(object, element);
return super.marshall(object, document);
}
private void configureAuthnRequest(AuthnRequest authnRequest) {
authnRequest.setForceAuthN(true);
}
}
factory.getMarshallerFactory().registerMarshaller(AuthnRequest.DEFAULT_ELEMENT_NAME, marshaller);
});
}
----