We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a5c7ec commit 3655e9eCopy full SHA for 3655e9e
src/cmap/auth/mongo_credentials.ts
@@ -182,9 +182,13 @@ export class MongoCredentials {
182
}
183
184
if (this.mechanism === AuthMechanism.MONGODB_OIDC) {
185
- if (this.username && this.mechanismProperties.PROVIDER_NAME) {
+ if (
186
+ this.username &&
187
+ this.mechanismProperties.PROVIDER_NAME &&
188
+ this.mechanismProperties.PROVIDER_NAME !== 'azure'
189
+ ) {
190
throw new MongoInvalidArgumentError(
- `username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`
191
+ `username and PROVIDER_NAME '${this.mechanismProperties.PROVIDER_NAME}' may not be used together for mechanism '${this.mechanism}'.`
192
);
193
194
0 commit comments