mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
* Remove deprecated cryptoservice functions * Use getUserkeyWithLegacySupport to get userkey * Fix tests * Fix tests * Fix tests * Remove unused cryptoservice instances * Fix build * Remove unused apiService in constructor * Fix encryption * Ensure passed in key is used if present * Fix sends and folders * Fix tests * Remove logged key * Fix import for account restricted keys
26 lines
957 B
TypeScript
26 lines
957 B
TypeScript
import {
|
|
OrganizationAuthRequestService,
|
|
OrganizationAuthRequestApiService,
|
|
} from "@bitwarden/bit-common/admin-console/auth-requests";
|
|
import { ServiceContainer as OssServiceContainer } from "@bitwarden/cli/service-container/service-container";
|
|
|
|
/**
|
|
* Instantiates services and makes them available for dependency injection.
|
|
* Any Bitwarden-licensed services should be registered here.
|
|
*/
|
|
export class ServiceContainer extends OssServiceContainer {
|
|
organizationAuthRequestApiService: OrganizationAuthRequestApiService;
|
|
organizationAuthRequestService: OrganizationAuthRequestService;
|
|
|
|
constructor() {
|
|
super();
|
|
this.organizationAuthRequestApiService = new OrganizationAuthRequestApiService(this.apiService);
|
|
this.organizationAuthRequestService = new OrganizationAuthRequestService(
|
|
this.organizationAuthRequestApiService,
|
|
this.cryptoService,
|
|
this.encryptService,
|
|
this.organizationUserApiService,
|
|
);
|
|
}
|
|
}
|