* Use logService for console messages
* Implement a base ConsoleLog service
Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.
* Use browser-process-hrtime for timing
* test LogService implementations
* Ignore default import of hrtime
* Clean up imports. Require ConsoleLog injection
Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
* Change cipher type based on csv type header
* Test identity and credit card import
* Do not use node 'fs' module
Karma is being used for automated tests so node modules are not available
* WIP: mac and windows 1password importer split
Need to improve windows field identification to limit secret data
exposure and improve user experience
* Hide fields with likely secret values
Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
* Initial commit of personal ownership enforcement
* Updated policy type enum
* Sync'd eventType for Policy_Updated with server enum value
* Added policyId to eventResponse model
* Removed explicit typing
* Use logService for console messages
* linter autofixes
* Use full import path
* Implement a base ConsoleLog service
Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.
* linter fixes
Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
* Fix import of 1password csv
* 1password is using '\' as a quote escape character.
* 1password's csv headers are sometimes capitalized. We want to identify
them case insensitively
* Change cipher type based on csv type header
* Translate 1password data to correct fields
* Test identity and credit card import
* linter fixes
* Do not use node 'fs' module
Karma is being used for automated tests so node modules are not available
Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
* Add context menu on right click to mac
* Add hide dock setting
* Change "hide dock" to "always show dock"
* Add support on mac for minimize to menu bar on close, minimize or start
* Add "openAtLogin" to ElectronConstants
* Add "restoreFromTray" to TrayMainService
* support for encrypted json export
* adjust filename prefix for encrypted formats
* flip if logic
* remove format param from encrypted export
* encryptedFormat getter
The motivation for this is https://github.com/bitwarden/cli/issues/129
where failed sync's are swallowed by try-catch. By moving the try-catch
to the outside it is possible to reuse the already existing
allowThrowOnError argument which callers can use to signal whether
fullSync should throw or ignore errors silently. This patch is
companioned with a patch to the SyncCommand CLI command to pass
allowThrowOnError.
This is in conjunction with API changes that validates the last known
revision date provided here with the actual last revision date on the
server to block potential data loss due to client desyncs.
Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
* Added support for authenticating with an API key
* added api service methods for user api keys
* fixed a copy/pasted api endpoint url
* Let toIdentityToken() use a a prestored client_id in place of the application client_id if one exists
* Allowed for api key auth in the cli
* Removed some commented out code commited for apiKey auth
* Cleanup for ApiKey auth in the CLI
* Removed cli prefix from client_crendential auth types
* Removed ClientPrefix conditional from decoded token getters
* Update src/services/api.service.ts
Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
* formatting
* changed command from login --apiKey to login --apikey
Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
* send work
* New method to update the last used index (#184)
Instead of updating it every time you call getNext(), it will be updated in a separate call, to avoid updating the index when the cipher did not auto-fill correctly (e.g wrong frame)
Fixes#1392
* added OnlyOrg to PolicyType enum (#183)
* [Require SSO] Add policy type enumeration (#186)
* Added SsoAuthentication policy type
* Updated policy type name // added comments for clarification of what each type controls
* [SSO] New user provision flow (#173)
* Initial commit of new user sso flow
* Adjusted stateSplit conditional per review
* Add logging to lowdb storage service (#188)
* Fix lint errors/warnings (#187)
* remove password api
* access id
* makeSendKey
Co-authored-by: Josep Marí <xusoo@users.noreply.github.com>
Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com>
Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
Instead of updating it every time you call getNext(), it will be updated in a separate call, to avoid updating the index when the cipher did not auto-fill correctly (e.g wrong frame)
Fixes#1392
This will allow users to launch the Remote Desktop client directly from
Bitwarden if their OS supports the URI scheme.
Per
https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-uri,
rdp:// is legacy and ms-rd: is the preferred one. I'm adding both so
that either can be used as ms-rd: is not available on all versions of
Windows and rdp:// is easier to add as a custom URI scheme in Windows 10
if it is desired.