File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
// Resolves the default auth mechanism according to
2
-
3
2
import type { Document } from '../../bson' ;
4
3
import { MongoAPIError , MongoMissingCredentialsError } from '../../error' ;
4
+ import { emitWarningOnce } from '../../utils' ;
5
5
import { AUTH_MECHS_AUTH_SRC_EXTERNAL , AuthMechanism } from './providers' ;
6
6
7
7
// https://github.com/mongodb/specifications/blob/master/source/auth/auth.rst
@@ -90,6 +90,9 @@ export class MongoCredentials {
90
90
}
91
91
92
92
if ( 'gssapiCanonicalizeHostName' in this . mechanismProperties ) {
93
+ emitWarningOnce (
94
+ 'gssapiCanonicalizeHostName is deprecated. Please use CANONICALIZE_HOST_NAME instead.'
95
+ ) ;
93
96
this . mechanismProperties . CANONICALIZE_HOST_NAME =
94
97
this . mechanismProperties . gssapiCanonicalizeHostName ;
95
98
}
You can’t perform that action at this time.
0 commit comments