MarkLogic Server 11.0 Product Documentation
sec.externalSecuritySetOauthJwtSecrets

sec.externalSecuritySetOauthJwtSecrets(
   external-security-name as String,
   new-oauth-jwt-key-ids as String,
   new-oauth-jwt-secret-values as String
) as null

Summary

This function sets the OAuth JWT secrets for the given external security object. The number of inputted key-IDs and keys must be equal and non-empty. The inputted key-IDs should be unique.

Parameters
external-security-name Name of the external security object.
new-oauth-jwt-key-ids The new list of OAuth key-IDs.
new-oauth-jwt-secret-values The new list of OAuth keys.

Required Privileges

http://marklogic.com/xdmp/privileges/external-security-set-oauth-jwt-secrets

Usage Notes

This function must be executed against the security database.

Example



declareUpdate();
const sec = require('MarkLogic/security');

sec.externalSecuritySetOauthJwtSecrets('oauthconfig', ("keyID1", "keyID2"), ("JWTKey1", "JWTKey2"));

    
Powered by MarkLogic Server | Terms of Use | Privacy Policy