mongodb-oidc-authentication-mechanism

--mongodb-oidc-authentication-mechanism is a global parameter for the Liquibase MongoDB Pro extension. It specifies the authentication mechanism for MongoDB. Valid values are: MONGODB-OIDC. If no value is specified, Liquibase tries to connect using a username and password. For more information, see MongoDB: Enterprise Authentication Mechanisms.

Specifying this parameter is required for OIDC authentication. It is available in the Liquibase Pro MongoDB extension 1.5.0 and later.

Uses

You can connect Liquibase to your MongoDB Atlas database using OpenID Connect (OIDC). This parameter lets you specify some of your OIDC authentication details. For more guidance on authentication on MongoDB Atlas, see Using Liquibase MongoDB Pro with MongoDB Atlas.

Syntax

You can set this parameter in the following ways:

Option Syntax
Liquibase properties file (defaults file)
liquibase.mongodb.oidc.authenticationMechanism: <string>
Global flow file argument (example)
stages:
  Default:
    actions:
      - type: liquibase
        command: update
        globalArgs: { mongodb-oidc-authentication-mechanism: "<string>" }
Global CLI parameter
liquibase
 --mongodb-oidc-authentication-mechanism=<string> update
 --changelog-file=example-changelog.xml

JVM system property (JAVA_OPTS Environment Variable)

JAVA_OPTS=-Dliquibase.mongodb.oidc.authenticationMechanism=<string>
Liquibase Environment Variables
LIQUIBASE_MONGODB_OIDC_AUTHENTICATION_MECHANISM=<string>

For more information, see Working with Command Parameters.

Related links