Loading TOC...

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.

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.