diff --git a/src/cmap/auth/mongodb_oidc.ts b/src/cmap/auth/mongodb_oidc.ts index 95265df21e..f10568a076 100644 --- a/src/cmap/auth/mongodb_oidc.ts +++ b/src/cmap/auth/mongodb_oidc.ts @@ -7,7 +7,7 @@ import { type AuthContext, AuthProvider } from './auth_provider'; import type { MongoCredentials } from './mongo_credentials'; import { AwsMachineWorkflow } from './mongodb_oidc/aws_machine_workflow'; import { AzureMachineWorkflow } from './mongodb_oidc/azure_machine_workflow'; -import { HumanWorkflow } from './mongodb_oidc/human_workflow'; +import { CallbackWorkflow } from './mongodb_oidc/callback_workflow'; /** Error when credentials are missing. */ const MISSING_CREDENTIALS_ERROR = 'AuthContext must provide credentials.'; @@ -74,7 +74,7 @@ export interface Workflow { /** @internal */ export const OIDC_WORKFLOWS: Map = new Map(); -OIDC_WORKFLOWS.set('callback', new HumanWorkflow()); +OIDC_WORKFLOWS.set('callback', new CallbackWorkflow()); OIDC_WORKFLOWS.set('aws', new AwsMachineWorkflow()); OIDC_WORKFLOWS.set('azure', new AzureMachineWorkflow()); diff --git a/src/cmap/auth/mongodb_oidc/human_workflow.ts b/src/cmap/auth/mongodb_oidc/callback_workflow.ts similarity index 99% rename from src/cmap/auth/mongodb_oidc/human_workflow.ts rename to src/cmap/auth/mongodb_oidc/callback_workflow.ts index 22110ba2ab..535edf1979 100644 --- a/src/cmap/auth/mongodb_oidc/human_workflow.ts +++ b/src/cmap/auth/mongodb_oidc/callback_workflow.ts @@ -32,7 +32,7 @@ const NO_REQUEST_CALLBACK = 'No REQUEST_TOKEN_CALLBACK provided for callback wor * OIDC implementation of a callback based workflow. * @internal */ -export class HumanWorkflow implements Workflow { +export class CallbackWorkflow implements Workflow { /** * Get the document to add for speculative authentication. This also needs * to add a db field from the credentials source. diff --git a/test/mongodb.ts b/test/mongodb.ts index 7333ccc63b..c21c939633 100644 --- a/test/mongodb.ts +++ b/test/mongodb.ts @@ -109,7 +109,7 @@ export * from '../src/cmap/auth/mongodb_oidc'; export * from '../src/cmap/auth/mongodb_oidc/aws_machine_workflow'; export * from '../src/cmap/auth/mongodb_oidc/azure_machine_workflow'; export * from '../src/cmap/auth/mongodb_oidc/azure_token_cache'; -export * from '../src/cmap/auth/mongodb_oidc/human_workflow'; +export * from '../src/cmap/auth/mongodb_oidc/callback_workflow'; export * from '../src/cmap/auth/mongodb_oidc/machine_workflow'; export * from '../src/cmap/auth/plain'; export * from '../src/cmap/auth/providers';