Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void reauthenticateAsync(final InternalConnection connection, final Opera
}).finish(callback);
}

private static OperationContext operationContextWithoutSession(final OperationContext operationContext) {
static OperationContext operationContextWithoutSession(final OperationContext operationContext) {
return operationContext.withSessionContext(
new ReadConcernAwareNoOpSessionContext(operationContext.getSessionContext().getReadConcern()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static OidcCallback getGcpCallback(final MongoCredential credential) {
@Override
public void reauthenticate(final InternalConnection connection, final OperationContext operationContext) {
assertTrue(connection.opened());
authenticationLoop(connection, connection.getDescription(), operationContext);
authenticationLoop(connection, connection.getDescription(), operationContextWithoutSession(operationContext));
}

@Override
Expand All @@ -262,7 +262,7 @@ public void reauthenticateAsync(final InternalConnection connection,
final SingleResultCallback<Void> callback) {
beginAsync().thenRun(c -> {
assertTrue(connection.opened());
authenticationLoopAsync(connection, connection.getDescription(), operationContext, c);
authenticationLoopAsync(connection, connection.getDescription(), operationContextWithoutSession(operationContext), c);
}).finish(callback);
}

Expand Down