MarkLogic 12 EA 1 Product Documentation
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>)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy