1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00
Commit Graph

706 Commits

Author SHA1 Message Date
e872b4df9d Only org policy (#962)
* added OnlyOrg to PolicyType enum

* blocked accepting new org invitations if OnlyOrg is relevant to the userOrg

* blocked creating new orgs if already in an org with OnlyOrg enabled

* created email alert for OnlyOrg policy

* removed users & sent alerts when appropriate for the OnlyOrg policy

* added method to noop mail service

* cleanup for OnlyOrg policy server logic

* blocked confirming new org users if they have violated the OnlyOrg policy since accepting

* added localization strings needed for the OnlyOrg policy

* allowed OnlyOrg policy configuration from the portal

* used correct localization key for onlyorg

* formatting and messaging changes for OnlyOrg

* formatting

* messaging change

* code review changes for onlyorg

* slimmed down a conditional

* optimized getting many orgUser records from many userIds

* removed a test file

* sql formatting

* weirdness

* trying to resolve git diff formatting issues
2020-10-20 02:48:10 -04:00
50cf16a3fb [SSO] New user provision flow (#945)
* Initial commit of accept user during set password flow

* changed new org user from accepted to invited // moved another check to token accept function

* Revised some white space // Moved business logic to UserService

* Fixed UserServiceTest

* Removed some white-space

* Removed more white-space

* Final white-space issues
2020-10-13 15:00:33 -05:00
9848f12638 enabled SSO when needed when upgrading from a free plan (#960) 2020-10-07 15:03:47 -04:00
845f9f5245 Fixed storage issue when upgrading from a free plan (#942) 2020-09-18 14:10:30 -04:00
1c6c599b8d Created sso config service with save (#936) 2020-09-15 10:17:44 -04:00
c0e99d4047 Removed security stamp rotation during set-password SSO flow (#933) 2020-09-14 14:27:30 -05:00
7a72da5725 fix deprecated mailkit MailboxAddress ctor 2020-08-28 14:21:16 -04:00
db7d05b52f Added PreValidate endpoint on Account controller (#896)
* Added PreValidate endpoint on Account controller

* Fixed IHttpClientFactory implementation

* Core localization and org sproc fix

* Pass culture, fixed sso middleware bug
2020-08-28 12:14:23 -04:00
59f8467f7c Create sso user api (#886)
* facilitate linking/unlinking existing users from an sso enabled org

* added user_identifier to identity methods for sso

* moved sso user delete method to account controller

* fixed a broken test

* Update AccountsController.cs

* facilitate linking/unlinking existing users from an sso enabled org

* added user_identifier to identity methods for sso

* moved sso user delete method to account controller

* fixed a broken test

* added a token to the existing user sso link flow

* added a token to the existing user sso link flow

* fixed a typo

* added an event log for unlink ssoUser records

* fixed a merge issue

* fixed a busted test

* fixed a busted test

* ran a formatter over everything & changed .vscode settings in .gitignore

* chagned a variable to use string interpolation

* removed a blank line

* Changed TokenPurpose enum to a static class of strings

* code review cleanups

* formatting fix

* Changed parameters & logging for delete sso user

* changed th method used to get organization user for deleting sso user records

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
2020-08-26 14:12:04 -04:00
2cd6d4f61a plan adjustments (#890) 2020-08-25 14:23:36 -04:00
a8c20d1c32 pass down version properly to generate license (#880) 2020-08-20 10:12:27 -04:00
2872bda6fe tool to generate licenses (#874)
* tool to generate licenses

* code review feedback
2020-08-18 17:00:21 -04:00
d190c4bd0f Update APIs to collect other set password info (#870) 2020-08-17 10:40:35 -04:00
cd926ca8f6 allow user registration for sso (#865) 2020-08-13 17:30:10 -04:00
783b4804ec SSO support (#862)
* [SSO] Added change password API (#836)

* Created API for updating password with no current comparison

* Changed name of method and request // Added user has password error flow

* Updated user service method name // Updated string null/empty check

* Replaced hardcoded sso domain hints with config loader (#850)

* Replaced hardcoded sso domain hints with config loader

* use async/await for sso config loader

* Update AccountsController.cs

Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com>
Co-authored-by: Matt Portune <mportune@bitwarden.com>
Co-authored-by: Matt Portune <59324545+mportune-bw@users.noreply.github.com>
2020-08-12 17:03:09 -04:00
056b4b9bf4 add api support for updating org identifier (#861)
* add api support for updating org identifier

* add identifier to response as well

* implement in EF repo
2020-08-12 16:38:22 -04:00
c8220fdfa6 Plan And Price Updates (#859)
* Expanded the Plan model to make plan & product data a bit more dynamic 
* Created a Product enum to track versioned instances of the same plan
* Created and API call and Response model for getting plan & product data from the server
2020-08-11 14:19:56 -04:00
5878d1b0db Ref event should be base64 encoded (#853) 2020-08-06 20:29:35 -04:00
b5ac20ec9f Correct connection string for res queue (#847) 2020-08-03 15:22:38 -04:00
69e8860767 Assign usepolicies when upgrading (#838) 2020-07-28 09:28:11 -04:00
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
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
83e9468502 Transition reference id to data (#828)
* Transition reference id to data

* field length and request model updates
2020-07-20 15:19:46 -04:00
2742b414fd reference event changes and cleanup (#823) 2020-07-15 12:38:45 -04:00
7af50172e0 Reference event service implementation (#811)
* Reference event service implementation

* Fix IReferenceable implementation of Id

* add structure to event body
2020-07-07 12:01:34 -04:00
a37706eba1 Restore original collection method (#804) 2020-06-30 11:52:50 -04:00
d7b00f6c27 Subscription update to maintain auto charge (#803) 2020-06-29 20:29:19 -04:00
fca7b162bf Reference id storage and signup 2020-06-25 12:28:22 -04:00
f23a8edc45 Update stripe lib (#793) 2020-06-24 21:24:19 -04:00
398867a839 Parameterize AmazonSQSClient to allow testing 2020-06-18 10:16:23 -07:00
61b15c55d0 Merge pull request #782 from bitwarden/feature/tax-info-collection
Combined tax updates with other operations
2020-06-18 11:26:58 -04:00
0f28ac45f9 Consistency on TaxInfo use in service params 2020-06-18 10:41:55 -04:00
aeb6e4e7d4 formatting 2020-06-18 09:57:24 -04:00
dc42be710a Add unit test coverage for AmazonSesMailDeliveryService (#783)
* Parameterize AmazonSimpleEmailServiceClient to allow testing

* Add unit test coverage for AmazonSesMailDeliveryService
2020-06-18 09:55:46 -04:00
b7a500eb63 combined tax updates with other operations 2020-06-17 19:49:27 -04:00
b2cb9a2f69 Billing addr line1 fix, pr feedback 2020-06-15 09:12:03 -04:00
1552ff7b29 Collect tax info, correct line1 2020-06-12 19:35:17 -04:00
d88838f19e API updates for tax info collection 2020-06-08 17:40:18 -04:00
545948220a additional formatting & inclusion of org name 2020-05-19 18:22:03 -04:00
9bf3a467fa formatting 2020-05-19 12:37:45 -04:00
2cf7f18858 License expiration email for self-hosted org/premium accounts 2020-05-18 16:06:34 -04:00
d49cc18a41 Stripe not crediting customer balance after void 2020-05-18 12:38:00 -04:00
97158d607a Merge pull request #727 from bitwarden/subscription-change-invoicing
Subscription change, invoice process update
2020-05-13 10:24:46 -04:00
9ef39bcadb Removed payment_behavior, errant whitespace 2020-05-13 09:54:10 -04:00
a024b43cea Updated code style and PR feedback 2020-05-12 17:22:04 -04:00
10a6e12d09 generate signin token for enterprise portal (#728) 2020-05-12 15:36:33 -04:00
a9a7003bfc Subscription change, invoice process update 2020-05-12 12:48:21 -04:00
9a2d8e96e4 Updated Stripe API SDK version to 36.9.0 2020-05-08 10:15:48 -04:00
fae4a335dc public API for organization import (#707) 2020-04-23 11:29:19 -04:00
4defd13395 [Soft Delete] - fix Upsert calls based on cipher supertype 2020-04-08 16:18:22 -04:00