Skip to content

Commit e49532f

Browse files
committed
test(HELP-69886): run oidc reauth test with mongoose
1 parent e2aa15c commit e49532f

File tree

4 files changed

+204
-183
lines changed

4 files changed

+204
-183
lines changed

package-lock.json

Lines changed: 111 additions & 182 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"mocha-sinon": "^2.1.2",
9999
"mongodb-client-encryption": "^6.1.0",
100100
"mongodb-legacy": "^6.1.3",
101+
"mongoose": "^8.9.5",
101102
"nyc": "^15.1.0",
102103
"prettier": "^3.3.3",
103104
"semver": "^7.6.3",

src/cmap/auth/mongodb_oidc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class MongoDBOIDC extends AuthProvider {
143143
*/
144144
override async auth(authContext: AuthContext): Promise<void> {
145145
const { connection, reauthenticating, response } = authContext;
146-
if (response?.speculativeAuthenticate?.done) {
146+
if (response?.speculativeAuthenticate?.done && !reauthenticating) {
147147
return;
148148
}
149149
const credentials = getCredentials(authContext);

0 commit comments

Comments
 (0)