Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec.externalSecuritySetHttpOptions

sec.externalSecuritySetHttpOptions(
   external-security-name as String,
   http-options as Node
) as null

Summary

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.

Required Privileges

http://marklogic.com/xdmp/privileges/external-security-set-http-options

Usage Notes

This function must be executed against the security database.

Example


  // 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);

   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.