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 c2da84e commit 13c6072Copy full SHA for 13c6072
src/cmap/auth/mongodb_aws.ts
@@ -108,8 +108,10 @@ export class MongoDBAWS extends AuthProvider {
108
return;
109
}
110
111
- // TODO(NODE-4990)
112
if (!ByteUtils.equals(serverNonce.subarray(0, nonce.byteLength), nonce)) {
+ // throw because the serverNonce's leading 32 bytes must equal the client nonce's 32 bytes
113
+ // https://github.com/mongodb/specifications/blob/875446db44aade414011731840831f38a6c668df/source/auth/auth.rst#id11
114
+
115
// TODO(NODE-3483)
116
callback(new MongoRuntimeError('Server nonce does not begin with client nonce'));
117
0 commit comments