1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-10 23:58:13 -05:00

43 Commits

Author SHA1 Message Date
Chad Scharf
fc146d27ce
Added fido2 registration to other services (#1299) 2021-05-04 23:43:16 -04:00
Matt Gibson
5537470703
Use sas token for attachment downloads (#1153)
* Get limited life attachment download URL

This change limits url download to a 1min lifetime.
This requires moving to a new container to allow for non-public blob
access.

Clients will have to call GetAttachmentData api function to receive the download
URL. For backwards compatibility, attachment URLs are still present, but will not
work for attachments stored in non-public access blobs.

* Make GlobalSettings interface for testing

* Test LocalAttachmentStorageService equivalence

* Remove comment

* Add missing globalSettings using

* Simplify default attachment container

* Default to attachments containe for existing methods

A new upload method will be made for uploading to attachments-v2.
For compatibility for clients which don't use these new methods, we need
to still use the old container. The new container will be used only for
new uploads

* Remove Default MetaData fixture.

* Keep attachments container blob-level security for all instances

* Close unclosed FileStream

* Favor default value for noop services
2021-02-22 15:35:16 -06:00
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
Kyle Spearrin
8deddfb466 add authenticatioon to fix DI errors 2020-09-05 23:38:47 -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
29580684a3 upgrade to aspnet core 3.1 2020-01-10 08:33:13 -05:00
Kyle Spearrin
48ec345702 update stripe SDK 2019-08-08 17:36:41 -04:00
Kyle Spearrin
94188fa0b5 update to net core 2.2 2019-07-23 16:38:49 -04:00
Kyle Spearrin
242e509b9d set en-US as default current culture 2019-07-11 15:03:17 -04:00
Kyle Spearrin
4084a01d7a replace paypal webhook with ipn 2019-02-27 14:55:23 -05:00
Kyle Spearrin
78fa990b1f fixes for credit add 2019-02-22 22:55:40 -05:00
Kyle Spearrin
fdaa9504d5 bitpay invoice api 2019-02-21 22:43:37 -05:00
Kyle Spearrin
312ced0e3b paypal IPN processing for account credit 2019-02-20 15:17:23 -05:00
Kyle Spearrin
f70ececa9d get rid of premium renewal jobs for braintree 2019-02-14 10:18:27 -05:00
Kyle Spearrin
a5044b6e6c rename to PayPal 2019-02-01 22:25:34 -05:00
Kyle Spearrin
f3b5068aba paypal client and stub out webhook 2019-02-01 17:16:28 -05:00
Kyle Spearrin
5f79af2e18 move premium renewal job to hosted job service 2018-08-10 11:20:04 -04:00
Kyle Spearrin
6e7bc8369d revert billing signin stuff for now 2018-04-17 00:36:30 -04:00
David Roth
702d833cea Add sentry logging support. (#240) 2018-03-23 13:33:31 -04:00
Kyle Spearrin
d35d8185ed passwordless sign in for admin 2018-03-21 14:26:49 -04:00
Kyle Spearrin
6a4ab83625 setup new admin portal project 2018-03-21 12:57:43 -04:00
Kyle Spearrin
3d9d193bda passwordless signin for billing portal 2018-03-20 15:00:56 -04:00
Kyle Spearrin
f4586002c4 organize event models. stub out event services 2017-12-01 09:22:04 -05:00
Kyle Spearrin
5069814c4f cleanup startup logging 2017-10-23 09:11:25 -04:00
Kyle Spearrin
5ee0b4a9da simplify secrets in startup via csproj tools 2017-10-19 00:08:09 -04:00
Kyle Spearrin
8b07244c95 move to standard appsettings.json 2017-10-18 23:32:27 -04:00
Kyle Spearrin
857ad5b194 remove cookie auth from useidentity 2017-10-06 14:02:28 -04:00
Kyle Spearrin
a17003b302 fix billing problems 2017-09-08 11:41:38 -04:00
Kyle Spearrin
5a53a2c218 make sure user services are registered 2017-09-07 17:04:55 -04:00
Kyle Spearrin
eb9bb315c3 version info in response headers 2017-08-25 08:57:43 -04:00
Kyle Spearrin
c2df445ac2 added stripe webhook signature checking 2017-08-12 22:30:44 -04:00
Kyle Spearrin
9bc6ba554a docker setup 2017-08-07 16:31:00 -04:00
Kyle Spearrin
f598b78ecb UseForwardedHeadersForAzure 2017-07-21 12:53:26 -04:00
Kyle Spearrin
4853917924 IHttpContextAccessor registration missing 2017-05-08 12:34:53 -04:00
Kyle Spearrin
a461aefd69 add back billing settings 2017-05-06 09:15:07 -04:00
Kyle Spearrin
94fa3b1d1d user secrets from string param 2017-05-05 23:03:03 -04:00
Kyle Spearrin
790ccb77c3 centralize ConfigurationBuilder 2017-05-05 21:49:55 -04:00
Kyle Spearrin
3daf0bcd18 centralize a lot of service registration 2017-05-05 20:57:33 -04:00
Kyle Spearrin
2340369d56 plan trial periods 2017-04-27 08:17:04 -04:00
Kyle Spearrin
3a5f667683 move repos and services reg out to core extensions 2017-04-26 16:13:24 -04:00
Kyle Spearrin
398a4d8e46 stripe webhook key from billing settings 2017-04-26 14:29:25 -04:00
Kyle Spearrin
3d5437e238 add packages 2017-03-18 22:37:01 -04:00
Kyle Spearrin
188571cad8 Billing project 2017-03-18 18:52:44 -04:00