Update saml2-login.adoc
Fix example on registering custom marshaller for saml request
This commit is contained in:
parent
9b42495afa
commit
10dce79c07
|
@ -223,13 +223,15 @@ static {
|
||||||
|
|
||||||
public Element marshall(XMLObject object, Document document) throws MarshallingException {
|
public Element marshall(XMLObject object, Document document) throws MarshallingException {
|
||||||
configureAuthnRequest((AuthnRequest) object);
|
configureAuthnRequest((AuthnRequest) object);
|
||||||
return super.marshall(object, element);
|
return super.marshall(object, document);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void configureAuthnRequest(AuthnRequest authnRequest) {
|
private void configureAuthnRequest(AuthnRequest authnRequest) {
|
||||||
authnRequest.setForceAuthN(true);
|
authnRequest.setForceAuthN(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
factory.getMarshallerFactory().registerMarshaller(AuthnRequest.DEFAULT_ELEMENT_NAME, marshaller);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
Loading…
Reference in New Issue