MongoDB Connection Details

To establish the connection successfully, you must configure the Flogo Connector for MongoDB instance.

The MongoDB Connector dialog contains the following fields:

Field Description
Connection Name The unique name for the connection you are creating.
Description A short description about the connection.
Connection URL

URL of the server or host where the MongoDB instance is running.

For example, if your connection string is mongosh "mongodb+srv://cluster0.xas23g.mongodb.net/myFirstDatabase?authSource=%24external&authMechanism=MONGODB-X509" --apiVersion 1 --tls --tlsCertificateKeyFile <path to PEM file> then your connection URL is mongodb+srv://cluster0.xas23g.mongodb.net/

Credential Type Select a credential type.
Authentication Source

This field is displayed only if you select SCRAM-SHA-1 or SCRAM-SHA-256 credential type.

Specify the database name that you created in the MongoDB database on which the user has to be authenticated.

User Name This field is displayed only if you select SCRAM-SHA-1 or SCRAM-SHA-256 credential type.
Password This field is displayed only if you select SCRAM-SHA-1 or SCRAM-SHA-256 credential type.
SSL Select to enable the SSL support for the connection.
x-509 Credentials

Select the x-509 certificate for the connection.

This option is displayed only if Credential Type is None and SSL field is enabled.

Trusted Certificate File

Select a trusted certificate file.

This field is displayed only if the SSL field is enabled. The supported file types are .pem, .cert, .cer, .crt.

ClientCert File

Select a client certificate file.

This is required for two-way SSL authentication. This field is displayed only if the SSL field is enabled. The supported file types are .pem, .cert, .cer, .crt.

ClientKey File

Select a key file for client certificate for two-way SSL authentication.

This field is displayed only if the SSL field is enabled. The supported file types are .pem, .cert, .cer, .der, .crt, .key

Key Password

Enter a password for the key file, if encrypted.

This is required for two-way SSL authentication. This field is displayed only if the SSL field is enabled.

For details about the fields, see the MongoDB documentation. You can edit a connection by using the Edit button displayed on the right side of the connection list.