- reorganize integration test files to allow for future additions
- add Google Workspace integration tests to the Github workflow
- refactor to run tests selective based on changed files and use
Azure Key Vault
* Changed label to entraID
* Performed rename of Azure AD to Entra ID
* Added check to maintain backward compatibility.
* Swapping Azure for Entra
* one last spot
* Adding property for the data.json for backward compatibility.
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Removing unneeded setting using the old azure property.
* Accidentally removed. Adding entra back in.
* Adding backward compatibility comment. Added here because it's required for SecureStorageKeys
* Adding backward compatibility comments.
* Fixing comment
* Removing unused fields.
---------
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Fix mixed up bools, use whole object
* disallow overwriteExisting on large syncs
* remove unused file
* add test, always set overwriteExisting to false for batched requests
* add more tests
* wip
* Clean up
---------
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
Google Workspace users in an "archived" state will be treated
as a disabled user by Directory Connector. e.g. they will be removed
from the organization if "remove disabled users during sync" is enabled.
* initial implementation
* next iteration
* clean up
* cleanup
* fix test
* cleanup
* rename services, refactor, fix test logic
* fix DI
* update comment
* update comment
* resolve merge conflict
* register dependencies out of jslib, more cleanup
* fix failing test in build
* fix type error
* try fixing test error
* remove async from test setup
* attempt to fix test
* fix text
* fix test
* add ts-expect-error comment
* cleanup
---------
Co-authored-by: bnagawiecki <107435978+bnagawiecki@users.noreply.github.com>
* Sync eslintrc with clients repo
* Autofix one eslint error
* Add type attributes to buttons for eslint
* Properly destroy ApiKeyComponent
* Fix eslint issues related to state
* Fix eslint warnings for default named imports
* Ran prettier
* Be more proactive about an unsubscribe
* Rework subscription
* Unpackage-ify jslib
* Adjust .tsconfig path for root and apply to jslib
* Rebuild package-lock.json
* Disable husky in CI
* Revert an incorrect find/replace
* Add jslib/shared/.eslintrc rules to root eslintrc
* Revert package.json change to ignore spec files when linting
* Ensure custom matcher gets imported in jslib tests
* Fix small workflow bugs from merging
* Try and get CI builds moving again
* Always sign and notorize builds in CI
* Revert erroneous verion bump
* [chore] Update jslib & state services to match
* [bug] Save userId when migrating state
This is used to check for authentication, so if not present on boot of the app authenticated users will still have to log in again
* [bug] Save added accounts with userId
Currently we are passing in an account object, resulting in a null key. We should be passing in a userId
* [bug] Ensure configs and settings are not cleared on logout
We need to persist directoryConfigruations on logout so that logging out and back in doesn't require folks to need to reconfig their settings
* Remove unneeded LoginSyncService
* Run prettier
* [style] Remove commented lines
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
* Only get users for includeGroup filter
* Additional refactor after feedback
* refactor building of user entries
* Update src/services/azure-directory.service.ts
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Combine user null checks
* Rename variable
* Put deleted users loop back the way it was
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Don't flag deleted users as duplicates
* Fix nearby linting error
* Apply user filter to deleted users as well
* Revert "Apply user filter to deleted users as well"
This reverts commit 1633ee265f.
* Only throw error if any duplicates are not deleted
* Rename processedUsers to processedActiveUsers
* Update src/services/sync.service.ts
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Update src/services/sync.service.ts
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Update src/services/sync.service.ts
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Remove empty catch blocks and remove allow-empty-catch tslint rule
* Update jslib to #513
* Fix build errors after update of jslib
* Add missing params to LoginCommand ctor
* Fix build errors due to missing dependencies
* Add changes to package.json and package-lock.json
* Fixed formatting in tslint.json
* Ignore duplicate users with same externalId
* Add null check
* Exclude deleted users from disabled users (Azure)
* Fix order of null check
* Stringify and compare duplicate before discarding