sec.externalSecuritySetHttpOptions( external-security-name as String, http-options as Node ) as null
This function sets the http options for the named SAML server configuration.
Parameters | |
---|---|
external-security-name | The name of the external security configuration. |
http-options | The http options to be set. |
http://marklogic.com/xdmp/privileges/external-security-set-saml-attribute-names
This function must be executed against the security database.
// This function needs a XML element as an argument declareUpdate(); const sec = require('/MarkLogic/security'); const x = new NodeBuilder(); x.startElement("sec:http-options", "http://marklogic.com/xdmp/security"); x.addAttribute("xmlns","xdmp:http"); x.startElement("authentication"); x.addAttribute("method","digest") x.startElement("username"); x.addText("admin") x.endElement(); x.startElement("password"); x.addText("admin") x.endElement(); x.endElement(); x.endElement(); const httpOptions = x.toNode() sec.externalSecuritySetHttpOptions("samlConfig",httpOptions);