Commit Graph

39 Commits

Author SHA1 Message Date
Matt Gibson
edf30974dc Validate cipher updates with revision date (#994)
* Add last updated validation to cipher replacements

* Add AutoFixture scaffolding.

AutoDataAttributes and ICustomizations are meant to automatically
produce valid test input. Examples are the Cipher customizations,
which enforce the model's mutual exclusivity of UserId and
OrganizationId.

FixtureExtensions create a fluent way to generate SUTs. We currently
use parameter injection to fascilitate service testing, which is nicely
handled by AutoNSubstitute. However, in order to gain access to the
substitutions, we need to Freeze them onto the Fixture. The For fluent
method allows specifying a Freeze to a specific type's constructor and
optionally to a parameter name in that constructor.

* Unit tests for single Cipher update version checks

* Fix test runner

Test runner requires Microsoft.NET.Test.Sdk

* Move to provider model for SUT generation

This model differs from previous in that you no longer need to specify
which dependencies you would like access to. Instead, all are
remembered and can be queried through the sutProvider.

* User cipher provided by Put method reads

Every put method already reads all relevant ciphers from database,
there's no need to re-read them.

JSON serialization of datetimes seems to leave truncate at second
precision. Verify last known date time is within one second rather than
exact.

* validate revision date for share many requests

* Update build script to use Github environment path

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-11-23 08:48:05 -06:00
Addison Beck
229478adae Feature.web.534.allow multi select in org vault (#830)
* Set up API methods for bulk admin delete
2020-07-22 11:38:53 -05:00
Hinton
7145e3ea88 On create default ViewPassword to true. 2020-06-15 18:54:32 +02:00
Chad Scharf
d014a597dd [Soft Delete] - API updates for soft delete + retrieval 2020-04-01 13:00:25 -04:00
Chad Scharf
9800b752c0 Changed all C# control flow block statements to include space between keyword and open paren 2020-03-27 14:36:37 -04:00
Kyle Spearrin
7cda459127 support for attachments keys
load existing items and set attachments on key update
2018-11-14 17:19:04 -05:00
Kyle Spearrin
96b492fa07 apis for creating ciphers with org & collections 2018-10-19 12:07:31 -04:00
Kyle Spearrin
cb902bf670 make ivalidatable 2018-08-02 23:13:17 -04:00
Kyle Spearrin
14956f6383 encrypted string length attr 2018-08-02 08:57:32 -04:00
Kyle Spearrin
99df132cc7 null checks 2018-07-30 21:36:11 -04:00
Kyle Spearrin
5c31a35cfe store password history and revision dates 2018-07-27 17:49:27 -04:00
Kyle Spearrin
de552be25f apis for bulk sharing 2018-06-13 14:03:44 -04:00
Kyle Spearrin
2b276e9986 backwards compat apis on Uri 2018-03-01 09:29:49 -05:00
Kyle Spearrin
3563a85318 add support for multiple uris on login model.
refactor cipher data models.
2018-02-28 21:23:46 -05:00
Kyle Spearrin
88c35f9f86 remove noOrg param 2017-12-04 16:44:17 -05:00
Kyle Spearrin
6639c61ee1 dont allow org id assignments on cipher creation 2017-12-04 16:43:18 -05:00
Kyle Spearrin
b0fd99b218 additional identity fields 2017-10-09 11:23:20 -04:00
Kyle Spearrin
7e848e5c55 added identity cipher type 2017-10-06 15:47:31 -04:00
Kyle Spearrin
91e1c5878c remove deprecated code 2017-10-06 15:29:36 -04:00
Kyle Spearrin
0abcdd9724 import ciphers, not logins 2017-09-28 13:11:56 -04:00
Kyle Spearrin
825f7b8bb9 proper ToCipher on CipherWithIdRequestModel 2017-09-27 21:55:39 -04:00
Kyle Spearrin
c58135bac5 refactor api models for other cipher types 2017-09-21 10:52:23 -04:00
Kyle Spearrin
12650a0ada deprecated logins api and moved to ciphers 2017-09-20 23:52:45 -04:00
Kyle Spearrin
27216efd1f stub out fields and secure note models 2017-09-13 16:54:23 -04:00
Kyle Spearrin
c991d48cbc increase encrypted field sizes to 1000 2017-07-27 14:08:39 -04:00
Kyle Spearrin
f8c749bab5 share login with attachments 2017-07-10 14:30:12 -04:00
Kyle Spearrin
f30faedc87 add support for totp secret in login cipher data 2017-07-06 17:11:05 -04:00
Kyle Spearrin
f24bc96846 folder permission checks and null folder 2017-06-09 09:48:44 -04:00
Kyle Spearrin
d3073e675e bulk action apis for delete and move 2017-06-09 00:30:59 -04:00
Kyle Spearrin
848e94ad56 restore new change pass and email apis 2017-05-03 10:12:13 -04:00
Kyle Spearrin
23467b7771 backwards compat issues with change email/password 2017-04-28 16:49:40 -04:00
Kyle Spearrin
c6ac82dadd renaming subvault => collection 2017-04-27 09:19:30 -04:00
Kyle Spearrin
f7aa6fadbf admin subvault updates for cipher 2017-04-17 23:12:48 -04:00
Kyle Spearrin
e732996cd9 change email/password adjustments 2017-04-17 14:53:07 -04:00
Kyle Spearrin
c6ef3dc283 update cipher subvaults 2017-04-12 12:42:00 -04:00
Kyle Spearrin
382be7a90b permissions validation 2017-04-04 22:07:30 -04:00
Kyle Spearrin
ed8d5d69a4 Move into and read ciphers from org subvaults 2017-03-21 21:13:39 -04:00
Kyle Spearrin
588f6c7c2c refactor for cipher details, folders, favorites 2017-03-18 11:58:02 -04:00
Kyle Spearrin
8bcd4e0463 move all models into core 2017-03-08 21:55:08 -05:00