Browse Source

Update saml2-login.adoc

Fix example on registering custom marshaller for saml request
pull/9453/head
kavi87 5 years ago committed by Josh Cummings
parent
commit
27e6743fd6
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
  1. 4
      docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc

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

@ -219,13 +219,15 @@ static { @@ -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);
});
}
----

Loading…
Cancel
Save