* PS-589 Fix 2022-05-24_00_DeviceUnknownVerification User_Update proc to remove the NULL and set the default value
* PS-589 updated stored procedures on Sql project to have UnknownDeviceVerificationEnabled with default 1 instead of NULL
* Fix parameter name to match entity
* Deserialize policy data in object
* Add policy with config type to fixtures
* Return policy with deserialized config
* Use CoreHelper serializers
* Add master password reset on accept request
* Simplify policy data parsing
* Linter
* protonmail.com domain has been replaced by proton.me
Protonvpn.com is still in use so there is still a need for equivalent domains for Proton.
* Update StaticStore.cs
* Added UnknownDeviceVerificationEnabled on User that is turned off when emergency contact takes over the account. Also added endpoints to get and update 2fa device verification settings. And Updated migrations & tests
* Applied dotnet format
* Fixed method rename call on TwoFactorController
* PS-589 Format fixes
* PS-589 changed UnknownDeviceVerificationEnabled to be non-nullable
Template items here aren't really tasks as interpreted by github, this
allows us to have the same MD experience without hinting to Github that
there are 2/8 tasks done, which was annoying.
* Updating the grep version check to be more strict on the new version convention
* updating the way we check the version with the new github release
* Fixed the release-type
* switching master branch name for commit
* Revert scaling by previous value
* Throw is Stripe subscription revert fails
* Remove unused property
* Add null check to accommodate for not existing storage-gb-xxx subscription item
* Use long? instead of Nullable<long>
* Remove redundant try/catch
* Ensure collectionMethod is changed back, even when revertSub fails
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
* Add api integration tests
* Add some stuff
* Make program mockable
* Work on IntegrationTests for Identity
* Formatting
* Update packages.lock.json
* Update more packages.lock.json
* Update all packages.lock.json
* Fix InMemory configuration
* Actually fix test configuration
* Fix tests for CI
* Fix event service
* Force EF EventRepository
* Add client_credentials test
* Remove Api.IntegrationTest
* Remove Api Program changes
* Cleanup
* Add more Auth-Email tests
* Run formatting
* Address some PR feedback
* Move integration stuff to it's own common project
* Ran linter
* Add shared project to test solution
* Remove sln changes
* Clean usings
* Add more coverage
* Address PR feedback
* CSA-2 - adding master password authentication when enrolling in password reset
* Getting user by principal rather than ID
* Removing unnecessary userId call
* Use secret verification for re-auth api requests
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
* Store migrations in a migrations db
Added the -p flag to run_migrations for pipeline to run from
environment variables
Created meta-migrations script to pre-populate migrations_vault_dev
tables with run migrations for those already using the last_migrations
file
* Update dev/helpers/mssql/migrate_migrations.sh
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* Update dev/helpers/mssql/run_migrations.sh
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* Remove last_migration file creation
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* EC-198 added global setting flag for 2FA email on new device login feature
* EC-198 Removed is development environment check on 2FA email new device login given that we can now rely on the global settings feature flag
* EC-198 Improved IGlobalSettings and UserService code for testing