1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02:00
The browser extension vault (Chrome, Firefox, Opera, Edge, Safari, & more).
Go to file
Rui Tomé 8e7a215597
[AC-1712] Add functionality to approve all device approval requests (#9251)
* [AC-2302] Move organization-auth-request.service to bit-common folder

* [AC-2302] Rename organization-auth-request.service to organization-auth-request-api.service

* [AC-2302] Move logic from component to organization-auth-request.service

* [AC-2302] Fix import path in OrganizationAuthRequestService

* [AC-2302] Move imports to OrganizationsModule and delete unused CoreOrganizationModule

* [AC-2302] Move the call to get userResetPasswordDetails into OrganizationAuthRequestService

* [AC-2302] Remove @Injectable() and manually configure dependencies

* [AC-2302] Add OrganizationAuthRequestService unit tests first draft

* [AC-2302] Refactor device-approvals.component.ts to remove unused imports

* [AC-2302] Set up jest on bit-common and add unit tests for OrganizationAuthRequestService

* [AC-2302] Add bit-common to jest.config.js

* [AC-2302] Update organizations.module.ts to include safeProviders declared in variable

* [AC-2302] Remove services and views folders from bit-common

* [AC-2302] Define path mapping

* Adjust an import path

The import path of `PendingAuthRequestView` in
`OrganizationAuthRequestApiService` was pointing to the wrong place. I
think this file was just recently moved, and the import didn't get
updated.

* Get paths working

* Fix import

* Update jest config to use ts-jest adn jsdom

* Copy-paste path mappings from bit-web

* Remove unnecessary test setup file

* Undo unnecessary change

* Fix remaining path mappings

* Remove Bitwarden License mapping from OSS code

* Fix bit-web so it uses its own tsconfig

* Fix import path

* Remove web-bit entrypoint from OSS tsconfig

* Make DeviceApprovalsComponent standalone

* Remove organization-auth-request-api.service export

* Add BulkApproveAuthRequestsRequest class for bulk approval of authentication requests

* Add api call for device bulk approvals

* Add bulk device approval to OrganizationAuthRequestService

* Add unit tests for bulk device approval method

* Remove OrganizationsRoutingModule from DeviceApprovalsComponent imports

* Remove CoreOrganizationModule from OrganizationsModule imports

* Remove NoItemsModule from OrganizationsModule imports

* Get keys for each item to approve

* Update approvePendingRequests unit test

* Use ApiService from JslibServicesModule

* Update providers in device-approvals.component.ts

* Add method to retrieve reset password details for multiple organization users

* Add organizationUserId property to OrganizationUserResetPasswordDetailsResponse class

* Use method to retrieve reset password details for multiple organization users

* Rename ResetPasswordDetails to AccountRecoveryDetails

* Update OrganizationAuthRequestService to use getManyOrganizationUserAccountRecoveryDetails

* Add functionality to approve all device approval requests

* Update AdminAuthRequestUpdateWithIdRequest property names and imports

* Refactor bulk approval functionality in organization auth requests

* Put the 'Approve All' button behind a feature flag.

* Update feature flag key

Co-authored-by: Addison Beck <github@addisonbeck.com>

* Rename update request AdminAuthRequestUpdateWithIdRequest to OrganizationAuthRequestUpdateRequest

* Update organization-auth-request.service.spec.ts to use bulkUpdatePendingRequests method

---------

Co-authored-by: Addison Beck <hello@addisonbeck.com>
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
Co-authored-by: Addison Beck <github@addisonbeck.com>
2024-05-27 14:20:44 +01:00
.checkmarx Update SAST preset to query set (#8569) 2024-04-01 16:24:04 -04:00
.codescene
.github [AC-2631] Add device-approval command scaffolding (#9351) 2024-05-27 11:03:23 +10:00
.husky Update husky hooks (#7738) 2024-01-30 06:50:54 -08:00
.storybook [PM-7343] AnonLayoutComponent Implementation Groundwork (#8585) 2024-05-06 18:34:40 -07:00
.vscode Add rust analyzer support for desktop-native (#8830) 2024-04-22 18:58:29 +02:00
apps [AC-1712] Add functionality to approve all device approval requests (#9251) 2024-05-27 14:20:44 +01:00
bitwarden_license [AC-1712] Add functionality to approve all device approval requests (#9251) 2024-05-27 14:20:44 +01:00
libs Separate browser foreground and background memory space (#9315) 2024-05-27 08:54:24 -04:00
patches
scripts
.editorconfig
.eslintignore [PM-5539] Migrate ThemingService (#8219) 2024-03-13 15:25:39 +00:00
.eslintrc.json [AC-2302] Extract device approve/deny logic into a service (#8818) 2024-05-20 11:18:23 +01:00
.git-blame-ignore-revs
.gitattributes
.gitignore
.nvmrc
.prettierignore
.prettierrc.json
angular.json [PS] fix broken local Storybook (#9075) 2024-05-07 14:48:23 -04:00
clients.code-workspace [AC-2302] Extract device approve/deny logic into a service (#8818) 2024-05-20 11:18:23 +01:00
CONTRIBUTING.md
jest.config.js [AC-2302] Extract device approve/deny logic into a service (#8818) 2024-05-20 11:18:23 +01:00
LICENSE_BITWARDEN.txt
LICENSE_GPL.txt
LICENSE.txt
package-lock.json [deps] Platform: Update @types/jquery to v3.5.30 (#9148) 2024-05-22 08:05:48 -04:00
package.json [deps] Platform: Update @types/jquery to v3.5.30 (#9148) 2024-05-22 08:05:48 -04:00
README.md Fix badge links (#7713) 2024-01-30 20:24:07 +00:00
SECURITY.md
tailwind.config.js
tsconfig.eslint.json [AC-2302] Extract device approve/deny logic into a service (#8818) 2024-05-20 11:18:23 +01:00
tsconfig.json [AC-2302] Extract device approve/deny logic into a service (#8818) 2024-05-20 11:18:23 +01:00

Bitwarden

GitHub Workflow browser build on main GitHub Workflow CLI build on main GitHub Workflow desktop build on main GitHub Workflow web build on main gitter chat


Bitwarden Client Applications

This repository houses all Bitwarden client applications except the Mobile application.

Please refer to the Clients section of the Contributing Documentation for build instructions, recommended tooling, code style tips, and lots of other great information to get you started.

We're Hiring!

Interested in contributing in a big way? Consider joining our team! We're hiring for many positions. Please take a look at our Careers page to see what opportunities are currently open as well as what it's like to work at Bitwarden.

Contribute

Code contributions are welcome! Please commit any pull requests against the main branch. Learn more about how to contribute by reading the Contributing Guidelines. Check out the Contributing Documentation for how to get started with your first contribution.

Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the SECURITY.md file.