1
0
mirror of https://github.com/bitwarden/server synced 2025-12-29 06:33:43 +00:00
Commit Graph

96 Commits

Author SHA1 Message Date
Oscar Hinton
e4a10aae27 Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
Oscar Hinton
f866b25e43 Key Connector feature toggle (#1716) 2021-11-17 11:46:35 +01:00
Kyle Spearrin
77f9f5fe72 remove dynamic names from admin confirm dialogs (#1703) 2021-11-09 12:13:23 -05:00
Daniel James Smith
dea694193f Add teams trial button to Edit Org Page (#1662)
* Add teams trial button to Edit Org Page

* Fix formatting
2021-10-25 14:28:17 +02:00
Kyle Spearrin
de3f1005fc add various status counts to org information (#1647) 2021-10-20 17:10:51 -04:00
Matt Gibson
d39f45c81c Organization autoscaling (#1585)
* Add autoscale fields to Organization

* Add autoscale setting changes

* Autoscale organizations

updates InviteUsersAsync to support all invite sources.

sends an email to org owners when organization autoscaled

* All organizations autoscale

Disabling autoscaling can be done by setting max seats to current seats.

We only warn about autoscaling on the first autoscaling event.

* Fix tests

* Bug fixes

* Simplify subscription update logic

* Void invoices that fail to delete

Stripe no longer allows deletion of draft invoices that were created as part of subscription updates. It's necessary to void out these invoices without sending tem to the client.

* Notify org owners when their subscription runs out of seats

* Use datetime for notifications

Allows for later re-sending email if we want to periodically remind
owners

* Do not update subscription if it already matches new quatity

* Include all migrations

* Remove unnecessary inline styling

* SubscriptionUpdate handles update decisions

* Remove unnecessary html setter

* PR review

* Use minimum access for class methods
2021-09-23 05:36:08 -05:00
Thomas Rittson
4bc683c38d Increase sales tax precision from 2 to 3 decimal places (#1525)
* Allow for tax rates with 3 decimal places

* Update input validation

* Increase precision of create procedure
2021-08-24 06:52:59 +10:00
Luc
74218d4639 Include admin reset on trial (#1530)
Objective
The "Enterprise Trial button" was missing the admin reset feature on press. Add the checkbox to selected features when pressed.

Code Changes
Add checked property for UseResetPassword
2021-08-20 15:57:50 -04:00
Addison Beck
f55708d748 built out the organization edit event from the admin portal (#1508)
* built out the organization edit event from the admin portal

* removed unneeded override

* added some space

* fixed the space
2021-08-11 12:44:30 -04:00
Matt Gibson
842a1c2e37 Tweak provider views (#1499)
* Add Organizations to provider views

Remove enabled/disabled toggle from provider. It's currently not used.

* Remove provider Delete

There are implications to deleting providers on the organizations they manage.
We want to think through this flow before allowing delete from the
admin portal.

* Use toastr to display production exception messages.

Update build actions to upgrade npm to v7.

Use a custom error handler in production which displays a toast of the
exception message and redirect to the offending page

* Clarify provider create error message
2021-08-10 11:28:00 -05:00
Addison Beck
152f1f7a9b Allow Resending Provider Setup Emails From The Admin Portal (#1497)
* Added a button for resending provider setup emails

* Fixed a case typo in a stored procedure

* Turned a couple lines of code into a method call

* Added service level validation against inviting users for MSP invites

* Code review improvements for provider invites

created a factory for provider user invites

wrote tests for provider invite permissions"

* changed a few exception types
2021-08-05 10:39:05 -04:00
Matt Gibson
71daef2588 Always enable events for providers (#1487) 2021-07-27 15:44:54 -05:00
Oscar Hinton
feb3106f37 [Provider] Create and access child organizations (#1427) 2021-07-08 17:05:32 +02:00
Vincent Salucci
f6236bea6f [Reset Password] Admin page updates (#1379) 2021-06-07 09:08:34 -05:00
Oscar Hinton
fe1ffb6a22 [Provider] Server entities and models (#1370)
* Mock out provider models and service

* Implement CreateAsync, CompleteSetupAsync, UpdateAsync, InviteUserAsync and ResendInvitesAsync

* Implement AcceptUserAsync and ConfirmUsersAsync

* Implement SaveUserAsync and DeleteUserAsync

* Add email templates

* Add admin operations for providers

* Fix mail template names

* Rename roles

* Verify provider has provideradmin

* Add self hosted check to admin controller

* Resolve review comments

* Update sql queries

* Change create provider to use email instead of userId
2021-06-03 18:58:29 +02: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
Chad Scharf
f3bff938c4 Added ability to bulk-upload tax rates (#1139) 2021-02-11 16:39:27 -05:00
Addison Beck
085987d2f1 fixed a broken link and removed a duplicate property (#1029) 2020-12-07 09:18:25 -05:00
Addison Beck
b877c25234 Implemented tax collection for subscriptions (#1017)
* Implemented tax collection for subscriptions

* Cleanup for Sales Tax

* Cleanup for Sales Tax

* Changes a constraint to an index for checking purposes

* Added and implemented a ReadById method for TaxRate

* Code review fixes for Tax Rate implementation

* Code review fixes for Tax Rate implementation

* Made the SalesTax migration script rerunnable
2020-12-04 12:05:16 -05:00
Kyle Spearrin
aa6bc164bb support log filters for portal and sso (#948) 2020-09-22 10:32:14 -04:00
Kyle Spearrin
2872bda6fe tool to generate licenses (#874)
* tool to generate licenses

* code review feedback
2020-08-18 17:00:21 -04:00
Matt Portune
51fd87df0b Added UseSso bool to Organization (#834)
* Added UseSso bool to org

* Update fields in migration script

* bump version & check enabled flag on ssoConfig
2020-07-22 09:38:39 -04:00
Kyle Spearrin
5b598b811e Add additional meta data to org view (#655)
* Add additional meta data to org view

* null check policies and groups
2020-02-25 14:28:41 -05:00
Kyle Spearrin
6b6c2d862d 8bit => bitwarden 2020-02-18 22:22:32 -05:00
Kyle Spearrin
e69fc3620e tool to promote admin user to org owner 2020-02-14 20:13:25 -05:00
Kyle Spearrin
e8054df5b4 use policies property for orgs 2020-01-15 15:00:54 -05:00
Kyle Spearrin
904c29809b placeholders 2019-10-01 09:13:00 -04:00
Kyle Spearrin
47fed7ab80 date range search on logs 2019-10-01 09:02:36 -04:00
Kyle Spearrin
a6bd55e7a5 more logging 2019-07-11 16:19:38 -04:00
Kyle Spearrin
d6a451d41f start TLS info on admin homepage 2019-04-12 09:14:06 -04:00
Kyle Spearrin
e51d435236 allow negative amount transaction 2019-03-08 15:37:09 -05:00
Kyle Spearrin
15cb0ad4c3 implement useapi and apikey 2019-03-02 15:09:33 -05:00
Kyle Spearrin
3b8552b2fa billing info and tx management tools 2019-02-25 12:43:20 -05:00
Kyle Spearrin
7ee8c0a240 add billing info to admin edit page 2019-02-25 10:39:04 -05:00
Kyle Spearrin
fb21b19490 charge braintree customer tool 2019-02-15 16:18:34 -05:00
Kyle Spearrin
54c6ffeece Registration 2019-01-26 21:47:34 -05:00
Kyle Spearrin
8512a42627 rename core to server 2019-01-25 11:35:57 -05:00
Kyle Spearrin
411e8a67f9 core => server updates 2019-01-18 22:20:05 -05:00
Kyle Spearrin
9afca4c277 remove old org fields 2019-01-18 15:49:57 -05:00
Kyle Spearrin
ca22a007f6 noindex,nofollow 2019-01-17 16:45:53 -05:00
Kyle Spearrin
bcd396d620 robots noindex admin 2019-01-17 16:24:52 -05:00
Kyle Spearrin
ac7c7b5077 move some 2fa logic functions to userService 2018-12-19 10:47:53 -05:00
Kyle Spearrin
cf73b168ee More CanAccessPremium checks 2018-08-28 17:40:08 -04:00
Kyle Spearrin
4f8061b488 adjust footer copyright 2018-08-21 23:12:06 -04:00
Kyle Spearrin
5766c1f6f3 enable notifications services 2018-08-17 18:04:11 -04:00
Kyle Spearrin
222d5b2f9d await partial async 2018-08-06 22:40:44 -04:00
Kyle Spearrin
4ce1e39095 PartialAsync 2018-08-06 21:11:23 -04:00
Kyle Spearrin
17ec153fa7 icons logging 2018-07-10 00:09:18 -04:00
Kyle Spearrin
8e98e489ab added use 2fa to org edit 2018-04-20 16:37:17 -04:00
Kyle Spearrin
b1b016fbc8 small logout button 2018-04-16 21:37:33 -04:00