mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
[AC-2740] Add device-approval to bw serve (#9512)
* Extract bw serve endpoint configuration to a configurator class * Add device-approval endpoints to bw serve
This commit is contained in:
@@ -5,6 +5,7 @@ import { OrganizationService } from "@bitwarden/common/admin-console/abstraction
|
||||
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||
|
||||
import { OrganizationAuthRequestService } from "../../../../bit-common/src/admin-console/auth-requests";
|
||||
import { ServiceContainer } from "../../service-container";
|
||||
|
||||
export class DenyCommand {
|
||||
constructor(
|
||||
@@ -43,4 +44,11 @@ export class DenyCommand {
|
||||
return Response.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
static create(serviceContainer: ServiceContainer) {
|
||||
return new DenyCommand(
|
||||
serviceContainer.organizationService,
|
||||
serviceContainer.organizationAuthRequestService,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user