Skip to content

Commit d18592e

Browse files
authored
Move authentication libs to more descriptive directories (#1596)
Part of OPS-3003.
1 parent 59d1e56 commit d18592e

26 files changed

Lines changed: 34 additions & 31 deletions

packages/server/api/src/app/ai/chat/context-enrichment.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
VariableContext,
1111
} from '@openops/shared';
1212
import { engineRunner } from 'server-worker';
13-
import { accessTokenManager } from '../../../app/authentication/lib/access-token-manager';
1413
import { flowService } from '../../../app/flows/flow/flow.service';
1514
import { flowStepTestOutputService } from '../../../app/flows/step-test-output/flow-step-test-output.service';
15+
import { accessTokenManager } from '../../authentication/context/access-token-manager';
1616

1717
type FlowData = {
1818
flow: PopulatedFlow;

packages/server/api/src/app/app-connection/app-connection-service/validate-auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
ProjectId,
99
} from '@openops/shared';
1010
import { engineRunner } from 'server-worker';
11-
import { accessTokenManager } from '../../authentication/lib/access-token-manager';
11+
import { accessTokenManager } from '../../authentication/context/access-token-manager';
1212
import { findBlockByAuthProviderKey } from '../connection-providers-resolver';
1313

1414
export const engineValidateAuth = async (

packages/server/api/src/app/authentication/authentication-service/hooks/community-authentication-hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { openopsTables } from '../../../openops-tables';
1616
import { organizationService } from '../../../organization/organization.service';
1717
import { projectService } from '../../../project/project-service';
1818
import { userService } from '../../../user/user-service';
19-
import { accessTokenManager } from '../../lib/access-token-manager';
19+
import { accessTokenManager } from '../../context/access-token-manager';
2020
import { AuthenticationServiceHooks } from './authentication-service-hooks';
2121

2222
export const communityAuthenticationServiceHooks: AuthenticationServiceHooks = {

packages/server/api/src/app/authentication/authentication-service/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { QueryFailedError } from 'typeorm';
1515
import { flagService } from '../../flags/flag.service';
1616
import { openopsTables } from '../../openops-tables';
1717
import { userService } from '../../user/user-service';
18-
import { passwordHasher } from '../lib/password-hasher';
18+
import { passwordHasher } from '../basic/password-hasher';
1919
import { authenticationServiceHooks as hooks } from './hooks';
2020
import { Provider } from './hooks/authentication-service-hooks';
2121

packages/server/api/src/app/authentication/lib/password-hasher.ts renamed to packages/server/api/src/app/authentication/basic/password-hasher.ts

File renamed without changes.

packages/server/api/src/app/authentication/lib/access-token-manager.ts renamed to packages/server/api/src/app/authentication/context/access-token-manager.ts

File renamed without changes.

packages/server/api/src/app/block-variable/block-variable-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
PrincipalType,
1010
} from '@openops/shared';
1111
import { engineRunner } from 'server-worker';
12-
import { accessTokenManager } from '../authentication/lib/access-token-manager';
12+
import { accessTokenManager } from '../authentication/context/access-token-manager';
1313
import { flowService } from '../flows/flow/flow.service';
1414
import { flowStepTestOutputService } from '../flows/step-test-output/flow-step-test-output.service';
1515

packages/server/api/src/app/blocks/base-block-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
PrincipalType,
2424
} from '@openops/shared';
2525
import { engineRunner } from 'server-worker';
26-
import { accessTokenManager } from '../authentication/lib/access-token-manager';
26+
import { accessTokenManager } from '../authentication/context/access-token-manager';
2727
import { flagService } from '../flags/flag.service';
2828
import { flowService } from '../flows/flow/flow.service';
2929
import { flowStepTestOutputService } from '../flows/step-test-output/flow-step-test-output.service';

packages/server/api/src/app/core/security/authn/access-token-authn-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
PrincipalType,
77
} from '@openops/shared';
88
import { FastifyRequest } from 'fastify';
9-
import { accessTokenManager } from '../../../authentication/lib/access-token-manager';
9+
import { accessTokenManager } from '../../../authentication/context/access-token-manager';
1010
import { userService } from '../../../user/user-service';
1111
import { BaseSecurityHandler } from '../security-handler';
1212

packages/server/api/src/app/flows/step-run/step-run-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
UserId,
1414
} from '@openops/shared';
1515
import { engineRunner } from 'server-worker';
16-
import { accessTokenManager } from '../../authentication/lib/access-token-manager';
16+
import { accessTokenManager } from '../../authentication/context/access-token-manager';
1717
import { sendWorkflowTestBlockEvent } from '../../telemetry/event-models';
1818
import { flowVersionService } from '../flow-version/flow-version.service';
1919
import { flowStepTestOutputService } from '../step-test-output/flow-step-test-output.service';

0 commit comments

Comments
 (0)