xdmp:credentials( $uri as [xs:string?] ) as element(sec:credential)*
Returns the credentials that the current user is allowed to use.
Parameters | |
---|---|
uri | An optional URL the user needs a credential for. |
xdmp:credentials("http://intraweb.acme.com/some/path") => <sec:credential> <sec:credential-id>92837172832323</sec:id> <sec:credential-name>acme</sec:name> <sec:credential-description>ACME Intraweb</sec:descriptions> <sec:credential-username>admin</sec:username> <sec:credential-password>...encrypted password...</sec:password> <sec:credential-certificate> ... PEM encoded certificate ... </sec:credential-certificate> <sec:credential-private-key> ... encrypted private key ... </sec:credential-private-key> <sec:credential-targets> <sec:credential-target> </sec:credential-target> </sec:credential-targets> <sec:credential-signing>false</sec:credential-signing> <sec:credential-permissions> <sec:permission> <sec:capability>read</sec:capability> <sec:role-id>8272371823823</sec:role-id> </sec:permission> </sec:credential-permissions> </sec:credential>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.