@@ -239,7 +239,7 @@ function expandExtlibsWrapper(action, args) {
239239 * @param {string } user - the user with permission to access the database
240240 * @param {string } password - the password for the user with permission to access
241241 * the database
242- * @param {enum } [authType=digest] - the authentication type of digest|basic|certificate|kerberos
242+ * @param {enum } [authType=digest] - the authentication type of digest|basic|certificate|kerberos|saml
243243 * @param {boolean } [ssl=false] - whether the REST server uses SSL; when true,
244244 * the connection parameters can include the
245245 * {@link http://nodejs.org/api/https.html#https_https_request_options_callback|supplemental
@@ -252,6 +252,7 @@ function expandExtlibsWrapper(action, args) {
252252 * @param {Buffer } [pfx] - the public x509 certificate and private key as a single PKCS12 file
253253 * to use for SSL
254254 * @param {string } [passphrase] - the passphrase for the PKCS12 file
255+ * @param {string } [token] - the SAML token to use for authentication with the REST server
255256 * @returns {DatabaseClient } a client for accessing the database
256257 * as the user
257258 */
@@ -628,17 +629,13 @@ MarkLogicClient.prototype.createTimestamp = function databaseCreateTimestamp(val
628629} ;
629630
630631/**
631- * Supplies a logger to use for database interactions or, instead, takes
632- * a logging level from the debug|info|warn|error|silent enumeration (where silent
633- * is the initial setting) for the default console logger.
634- * @method DatabaseClient#setLogger
635- * @since 1.0
636- * @param {object } logger - an object providing debug(), info(), warn(), and error()
637- * logging methods such as a logger provided by the
638- * {@link https://github.com/trentm/node-bunyan|Bunyan} or
639- * {@link https://github.com/flatiron/winston|Winston} logging libraries.
640- * @param {boolean } [isErrorFirst] - whether an error should be logged as the first parameter;
641- * must be provided as true for Bunyan (but not for Winston); defaults to false
632+ * Supplies a new authentication token to be used in subsequent requests
633+ * instead of the current authentication token.
634+ *
635+ * Note: the token must be a SAML authentication token.
636+ * @method DatabaseClient#setAuthToken
637+ * @param {string } token - an authentication token
638+ * @since 2.2.0
642639 */
643640MarkLogicClient . prototype . setAuthToken = function setAuthToken ( ) {
644641 const argLen = arguments . length ;
0 commit comments