Loading TOC...

sec:saml-entity-insert

sec:saml-entity-insert(
   $entity as element(md:EntityDescriptor)
) as xs:unsignedLong

Summary

This function inserts a SAML entity into the Security database.

Parameters
$entity The SAML entity to be inserted.

Example



xquery version "1.0-ml"; 
 
import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";
      
declare namespace md="urn:oasis:names:tc:SAML:2.0:metadata";
declare namespace ds="http://www.w3.org/2000/09/xmldsig#";
 
sec:saml-entity-insert(
<md:EntityDescriptor entityID="http://id.example.com/example4">
  <md:AttributeAuthorityDescriptor
    protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
    <md:AttributeService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"
                      Location="gordon-2:8005/AttributeQuery.xqy"/>
  </md:AttributeAuthorityDescriptor>
</md:EntityDescriptor>)
    

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