Matt Gibson
7eaf7ab770
[Bug] Fix cipher clone yielding incorrect RevisionDate ( #1031 )
...
* Fix cipher clone yielding incorrect RevisionDate
* PR fixes
Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-07 19:35:34 -06:00
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
Chad Scharf
f6044f0d00
Missed one other PR comment fix
2020-04-01 15:47:10 -04:00
Chad Scharf
1d04803bd0
Resolved PR comments, spacing and controller code-line reversion
2020-04-01 14:55:14 -04: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
b4148d3532
fix issues on cipher admin endpoints
2019-05-01 09:38:13 -04:00
Kyle Spearrin
f7511fce13
increase import limits
2019-03-15 11:29:07 -04:00
Kyle Spearrin
cc2cef5b27
pass org admin flag for attachment actions
2019-02-12 11:49:35 -05:00
Kyle Spearrin
43967ebbc1
increase folder limits on imports
2019-01-23 22:40:19 -05: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
5bc07fea7e
return cipher model with share put
2018-10-30 10:21:26 -04:00
Kyle Spearrin
0b166a080e
limit collection scope option when creating cipher
2018-10-22 14:09:55 -04:00
Kyle Spearrin
6641d884f5
formatting
2018-10-22 14:07:17 -04:00
Kyle Spearrin
96b492fa07
apis for creating ciphers with org & collections
2018-10-19 12:07:31 -04:00
Kyle Spearrin
7164f378fc
purge org vault
2018-09-25 09:12:50 -04:00
Kyle Spearrin
2562d5a40d
reference OrganizationMembership instead
2018-08-31 17:05:27 -04:00
Kyle Spearrin
0816c609db
check user access permissions on collections edit
2018-08-23 23:04:44 -04:00
Kyle Spearrin
de552be25f
apis for bulk sharing
2018-06-13 14:03:44 -04:00
Kyle Spearrin
9f919920bc
RequestSizeLimit for all attachment endpoints
2018-05-21 21:03:52 -04:00
Kyle Spearrin
8ce0f85fe8
only impose import limits on cloud version
2018-05-15 08:52:15 -04:00
Kyle Spearrin
528a0732a6
use withOrganizations sproc
2018-04-24 20:19:23 -04:00
Kyle Spearrin
165ee97d2f
refactor cipher queries by user. tuned indexing.
2018-04-24 12:48:43 -04:00
Kyle Spearrin
e350ef650a
dont cycle security token on re-hash
2018-04-17 08:10:17 -04:00
Kyle Spearrin
c4a6b3b7ef
idGuid variable
2018-02-24 14:32:48 -05:00
Kyle Spearrin
a5630f8af4
admin attachment apis
2018-02-24 14:29:11 -05:00
Kyle Spearrin
5a9923092a
RequestSizeLimit for attachment uploads
2018-02-19 08:20:57 -05:00
Kyle Spearrin
ec4eb6c3a0
update error message
2017-11-28 09:21:32 -05:00
Kyle Spearrin
0502ba2451
only get collection info when in an org
2017-11-24 09:28:38 -05:00
Kyle Spearrin
448ab08b19
limit to 500 on non self-hosted
2017-11-16 20:05:06 -05:00
Kyle Spearrin
a989a800f7
validate master password on purge
2017-10-25 21:38:54 -04:00
Kyle Spearrin
a042fd10f1
apis for purging user vault
2017-10-25 21:26:09 -04:00
Kyle Spearrin
255b5bbdb0
abuse limits on bulk apis
2017-10-09 16:58:37 -04:00
Kyle Spearrin
b0fd99b218
additional identity fields
2017-10-09 11:23:20 -04:00
Kyle Spearrin
0abcdd9724
import ciphers, not logins
2017-09-28 13:11:56 -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
06bdda5717
change routing for org import
2017-09-06 09:06:13 -04:00
Kyle Spearrin
95181aef89
organization cipher import with collections
2017-09-05 17:49:34 -04:00
Kyle Spearrin
955755831c
return CipherResponseModel from attachment post
2017-07-12 14:42:39 -04:00
Kyle Spearrin
f8c749bab5
share login with attachments
2017-07-10 14:30:12 -04:00
Kyle Spearrin
43262e577c
delete attachments
2017-07-07 11:07:22 -04:00
Kyle Spearrin
8ea81a74ae
return attachments from API
2017-06-30 23:01:41 -04:00
Kyle Spearrin
284078e946
database adjustments and storage for attachments
2017-06-30 14:41:57 -04:00
Kyle Spearrin
6cea556ae1
post, upload, and save cipher attachment
2017-06-30 11:15:58 -04:00
Kyle Spearrin
06ca566be1
attachment apis and azure storage service
2017-06-15 15:34:12 -04:00
Kyle Spearrin
71eca0962a
remove deprecated code
2017-06-13 09:12:00 -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