refactor(auth): add workspaces selection (#12098)
This commit is contained in:
@ -28,6 +28,7 @@ import {
|
||||
import { validateRemoteServerType } from 'src/engine/metadata-modules/remote-server/utils/validate-remote-server-type.util';
|
||||
import { WorkspaceEntityManager } from 'src/engine/twenty-orm/entity-manager/workspace-entity-manager';
|
||||
import { WorkspaceDataSourceService } from 'src/engine/workspace-datasource/workspace-datasource.service';
|
||||
import { JwtTokenTypeEnum } from 'src/engine/core-modules/auth/types/auth-context.type';
|
||||
|
||||
@Injectable()
|
||||
export class RemoteServerService<T extends RemoteServerType> {
|
||||
@ -257,7 +258,7 @@ export class RemoteServerService<T extends RemoteServerType> {
|
||||
|
||||
private encryptPassword(password: string, workspaceId: string) {
|
||||
const key = this.jwtWrapperService.generateAppSecret(
|
||||
'REMOTE_SERVER',
|
||||
JwtTokenTypeEnum.REMOTE_SERVER,
|
||||
workspaceId,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user