Skip to content

Commit f782829

Browse files
committed
refactor(NODE-5464): rename to callback workflow
1 parent 07aa6fa commit f782829

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/cmap/auth/mongodb_oidc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { type AuthContext, AuthProvider } from './auth_provider';
77
import type { MongoCredentials } from './mongo_credentials';
88
import { AwsMachineWorkflow } from './mongodb_oidc/aws_machine_workflow';
99
import { AzureMachineWorkflow } from './mongodb_oidc/azure_machine_workflow';
10-
import { HumanWorkflow } from './mongodb_oidc/human_workflow';
10+
import { CallbackWorkflow } from './mongodb_oidc/callback_workflow';
1111

1212
/** Error when credentials are missing. */
1313
const MISSING_CREDENTIALS_ERROR = 'AuthContext must provide credentials.';
@@ -74,7 +74,7 @@ export interface Workflow {
7474

7575
/** @internal */
7676
export const OIDC_WORKFLOWS: Map<ProviderName, Workflow> = new Map();
77-
OIDC_WORKFLOWS.set('callback', new HumanWorkflow());
77+
OIDC_WORKFLOWS.set('callback', new CallbackWorkflow());
7878
OIDC_WORKFLOWS.set('aws', new AwsMachineWorkflow());
7979
OIDC_WORKFLOWS.set('azure', new AzureMachineWorkflow());
8080

src/cmap/auth/mongodb_oidc/human_workflow.ts renamed to src/cmap/auth/mongodb_oidc/callback_workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const NO_REQUEST_CALLBACK = 'No REQUEST_TOKEN_CALLBACK provided for callback wor
3232
* OIDC implementation of a callback based workflow.
3333
* @internal
3434
*/
35-
export class HumanWorkflow implements Workflow {
35+
export class CallbackWorkflow implements Workflow {
3636
/**
3737
* Get the document to add for speculative authentication. This also needs
3838
* to add a db field from the credentials source.

test/mongodb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export * from '../src/cmap/auth/mongodb_oidc';
109109
export * from '../src/cmap/auth/mongodb_oidc/aws_machine_workflow';
110110
export * from '../src/cmap/auth/mongodb_oidc/azure_machine_workflow';
111111
export * from '../src/cmap/auth/mongodb_oidc/azure_token_cache';
112-
export * from '../src/cmap/auth/mongodb_oidc/human_workflow';
112+
export * from '../src/cmap/auth/mongodb_oidc/callback_workflow';
113113
export * from '../src/cmap/auth/mongodb_oidc/machine_workflow';
114114
export * from '../src/cmap/auth/plain';
115115
export * from '../src/cmap/auth/providers';

0 commit comments

Comments
 (0)