Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sec.externalSecurityRemoveOauthJwtSecrets

sec.externalSecurityRemoveOauthJwtSecrets(
   external-security-name as String,
   oauth-jwt-key-id as String
) as null

Summary

This function removes the specified JWT secrets based on their key-ID. This inputted key-IDs should be unique, non-empty, and exist in the given external security object.

Parameters
external-security-name Name of the external security object.
oauth-jwt-key-id The list of OAuth key-IDs to be removed.

Required Privileges

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

Usage Notes

This function must be executed against the security database.

Example



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

sec.externalSecurityRemoveOauthJwtSecrets('oauthconfig', ("keyID1", "keyID2"));

    

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