Details
-
New Feature
-
Resolution: Duplicate
-
Critical - P2
-
1.26.1
-
None
-
Not Needed
-
Description
Problem Description
Compass shows a validation error when a connection string with IAM authentication is pasted.
Property 'authStrategy' must be one of values: NONE, MONGODB, X509, KERBEROS, LDAP, SCRAM-SHA-256. Tried to set undefined |
This prevents the user from clicking the Connect button. The same connection string works when using other ways to connect, such as pymongo.
Steps to Reproduce
Paste an IAM connection string, e.g.
mongodb+srv://accesskey:secretkey@production-datastore.eucmb.mongodb.net/myFirstDatabase?authSource=%24external&authMechanism=MONGODB-AWS&retryWrites=true&w=majority
|
Expected Results
Connect button to be enabled and successfully connecting on click.
Actual Results
Connect button is disabled and an error is shown.

Additional Notes
The example given above is for IAM user-based authentication, but role-based authentication isn't working either.
Attachments
Issue Links
- related to
-
COMPASS-4877 Relax connection string validation to support IAM authentication
-
- Closed
-
- links to