1
0
mirror of https://github.com/bitwarden/server synced 2025-12-13 14:53:34 +00:00
Commit Graph

31 Commits

Author SHA1 Message Date
Matt Gibson
edd4bc2623 Add disable send policy (#1130)
* Add Disable Send policy

* Test DisableSend policy

* PR Review

* Update tests for using CurrentContext

This required making an interface for CurrentContext and mocking out
the members used. The interface can be expanded as needed for tests.

I moved CurrentContext to a folder, which changes the namespace
and causes a lot of file touches, but most are just adding a reference

* Fix failing test

* Update exemption to include all exempt users

* Move all CurrentContext usages to ICurrentContext

* PR review. Match messaging with Web
2021-02-04 12:54:21 -06:00
Addison Beck
63fcdc1418 Implemented Custom role and permissions (#1057)
* Implemented Custom role and permissions

* Converted permissions columns to a json blob

* Code review fixes for Permissions

* sql build fix

* Update Permissions.cs

* formatting

* Update IOrganizationService.cs

* reworked a conditional

* built out tests for relevant organization service methods

* removed unused usings

* fixed a broken test and a bad empty string init

* removed 'Attribute' from some attribute instances
2021-01-12 11:02:39 -05: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
71d9ffdd9d CheckPoliciesOnTwoFactorRemoval for 2fa recovery (#659) 2020-02-28 10:23:19 -05:00
Kyle Spearrin
81424a8526 Enforce 2fa policy (#654) 2020-02-19 14:56:16 -05:00
Kyle Spearrin
20e3963847 check duo keys on org config as well 2019-01-03 00:13:46 -05:00
Kyle Spearrin
3588db947a check duo config with duo's api 2018-12-20 15:39:36 -05:00
Kyle Spearrin
951e8f562e email token provider 2018-12-19 22:27:45 -05:00
Kyle Spearrin
b5a4bad637 catch u2f exceptions 2018-10-10 15:21:54 -04:00
Kyle Spearrin
bfc74060b6 add support for multiple u2f keys 2018-10-08 14:38:11 -04:00
Kyle Spearrin
c41a1e0936 CanAccessPremium checks instead of User.Premium 2018-08-28 16:23:58 -04:00
Kyle Spearrin
e350ef650a dont cycle security token on re-hash 2018-04-17 08:10:17 -04:00
Kyle Spearrin
0d4ea5ce5b organization 2fa apis 2018-04-02 23:18:26 -04:00
Kyle Spearrin
a3a03c7974 move private method to bottom 2017-09-11 23:07:27 -04:00
Kyle Spearrin
d3c18381f9 2fa prem fixes 2017-07-07 09:28:50 -04:00
Kyle Spearrin
99c1d68f5a premium checks on two factor 2017-07-06 16:38:28 -04:00
Kyle Spearrin
ae48c8d9b5 null ref fix 2017-07-06 16:31:46 -04:00
Kyle Spearrin
6c16a988c3 appid no longer served from api 2017-06-27 14:05:50 -04:00
Kyle Spearrin
8b40863472 no need for chrome ext to have appid 2017-06-26 23:56:45 -04:00
Kyle Spearrin
12da107c51 web policy for two factor apis 2017-06-26 09:09:30 -04:00
Kyle Spearrin
eea2ae30b4 get recovery code api 2017-06-24 17:16:05 -04:00
Kyle Spearrin
59b8438a0f update u2f lib. send 2fa login email 2017-06-24 09:20:12 -04:00
Kyle Spearrin
c069fad4e7 adjust fido content type with middleware 2017-06-22 23:15:28 -04:00
Kyle Spearrin
f28ae5ccd9 fixes for configuring u2f device 2017-06-22 17:03:35 -04:00
Kyle Spearrin
731a1e31b9 initiating u2f registration 2017-06-21 22:33:45 -04:00
Kyle Spearrin
fd5e2c9466 stubbing out api setup for u2f 2017-06-21 21:46:52 -04:00
Kyle Spearrin
50c0b3e752 configure duo 2fa 2017-06-21 14:19:07 -04:00
Kyle Spearrin
69de88cc32 yubikey setup for 2FA 2017-06-20 14:12:31 -04:00
Kyle Spearrin
612697e815 refactorings around two-factor controller 2017-06-20 10:08:59 -04:00
Kyle Spearrin
475160cfe1 two factor email setup 2017-06-20 09:21:35 -04:00
Kyle Spearrin
3b5b24531b refactor to a new two-factor controller 2017-06-19 22:08:10 -04:00