1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-08 00:31:27 +01:00
Commit Graph

551 Commits

Author SHA1 Message Date
Kyle Spearrin
0d0c6c7167
sso integrations (#822)
* stub out hybrid sso

* support for PKCE authorization_code clients

* sso service urls

* sso client key

* abstract request validator

* support for verifying password

* custom AuthorizationCodeStore that does not remove codes

* cleanup

* comment

* created master password

* ResetMasterPassword

* rename Sso client to OidcIdentity

* update env builder

* bitwarden sso project in docker-compose

* sso path in nginx config
2020-07-16 08:01:39 -04:00
Chad Scharf
2742b414fd
reference event changes and cleanup (#823) 2020-07-15 12:38:45 -04:00
Matt Portune
92238eb0a9
Additional changes for enterprise portal sso config (#819)
* Additional changes for enterprise portal sso config

* Requested changes

* rename enum to Saml2

* Limit to one SSO config per org
2020-07-13 15:58:59 -04:00
Chad Scharf
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
Vincent Salucci
b4524fbcb6
Added BusinessPortal property for use on client side (#810) 2020-07-06 12:59:57 -05:00
Matt Portune
da9b81d552
Merge pull request #796 from bitwarden/sso-dal
Additional SSO & Org Identifier work
2020-06-26 10:47:17 -04:00
Matt Portune
bc5ea25d0b removed ssoConfig request/response models 2020-06-26 10:03:25 -04:00
Matt Portune
f46023f2f5 requested changes 2020-06-25 18:06:27 -04:00
Matt Portune
39a81af3e9 DAL & CRUD for SSO 2020-06-25 16:42:29 -04:00
Chad Scharf
47a6e607c6 Fixed validation error for Free org accounts 2020-06-25 15:58:08 -04:00
Chad Scharf
fca7b162bf Reference id storage and signup 2020-06-25 12:28:22 -04:00
Chad Scharf
b7a500eb63 combined tax updates with other operations 2020-06-17 19:49:27 -04:00
Chad Scharf
f7e5f1f15e
Merge pull request #776 from bitwarden/feature/tax-info-collection
Feature/tax info collection
2020-06-17 10:49:54 -04:00
Hinton
7145e3ea88 On create default ViewPassword to true. 2020-06-15 18:54:32 +02:00
Chad Scharf
b2cb9a2f69 Billing addr line1 fix, pr feedback 2020-06-15 09:12:03 -04:00
Chad Scharf
1552ff7b29 Collect tax info, correct line1 2020-06-12 19:35:17 -04:00
Chad Scharf
5b3f81f47e
Merge pull request #743 from Hinton/feature/hide-passwords
Add support collection access, hide passwords
2020-06-11 14:24:04 -04:00
Chad Scharf
d88838f19e API updates for tax info collection 2020-06-08 17:40:18 -04:00
hinton
f2348d2264 Resolve review comments 2020-05-22 22:16:01 +02:00
hinton
36f15c67d0 Add support for new collection access, hide passwords 2020-05-21 15:38:57 +02:00
Matt Portune
545948220a additional formatting & inclusion of org name 2020-05-19 18:22:03 -04:00
Matt Portune
2cf7f18858 License expiration email for self-hosted org/premium accounts 2020-05-18 16:06:34 -04:00
Kyle Spearrin
fae4a335dc
public API for organization import (#707) 2020-04-23 11:29:19 -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
9520a646ad UserId added to MemberResponseModel 2020-03-17 12:05:06 -04:00
Kyle Spearrin
7dc959c058 return empty policies array if none 2020-03-12 15:05:46 -04:00
Kyle Spearrin
f54ebfdc75
email user whenever they're removed from org because of 2fa policy (#657) 2020-02-27 09:30:03 -05:00
Kyle Spearrin
81424a8526
Enforce 2fa policy (#654) 2020-02-19 14:56:16 -05:00
Kyle Spearrin
725522128c sync org policies to client devices 2020-01-28 15:33:32 -05:00
Kyle Spearrin
82be2ae06b parse cancellation dates to detect refunds 2020-01-28 09:24:00 -05:00
Kyle Spearrin
f3f1ac57d2 refactor policy apis 2020-01-20 08:53:15 -05:00
Kyle Spearrin
ff8731c82f add usepolicies to org profile object 2020-01-15 15:17:32 -05:00
Kyle Spearrin
e8054df5b4 use policies property for orgs 2020-01-15 15:00:54 -05:00
Kyle Spearrin
58faf5266b policy events 2020-01-15 09:43:49 -05:00
Kyle Spearrin
3f9b44f493 public policy apis 2020-01-15 09:19:55 -05:00
Kyle Spearrin
85f32f450b policy controller 2020-01-15 08:35:53 -05:00
Kyle Spearrin
5bb440563f just type mapping for json docs 2020-01-10 18:54:44 -05:00
Kyle Spearrin
29580684a3 upgrade to aspnet core 3.1 2020-01-10 08:33:13 -05:00
Kyle Spearrin
8026912eeb fixes for databasecontext and json types 2020-01-09 07:57:33 -05:00
Kyle Spearrin
002efaafd4 map json columns for org and user 2020-01-08 21:38:32 -05:00
Kyle Spearrin
9fa7f335bd org repo 2020-01-08 21:34:49 -05:00
Kyle Spearrin
7c5be176fa Stub out EF repo base with user repo 2020-01-08 20:28:16 -05:00
Kyle Spearrin
9caaab0537 stub out policy models and repos 2020-01-06 14:27:16 -05:00
Kyle Spearrin
ad010f6080 Merge branch 'master' of github.com:bitwarden/server 2019-12-23 15:26:47 -05:00
Brian Becker
0be86072f7 Add email notification on Two Factor recovery use (#625)
* Add email notification on Two Factor recovery use

* A user who has lost their 2fa device can clear out the
  2fa settings using a recovery code.  When this happens
  it gets logged but no notification to the user occurs.
* Add a notification to be sent when 2fa recovery code is
  used

* Add email message templates
2019-12-23 15:26:39 -05:00
Kyle Spearrin
e2d65e5b08 switch to official bitpay light library 2019-12-19 10:27:06 -05:00
Kyle Spearrin
654eb5e15f further validate email for org users 2019-11-25 10:57:55 -05:00
Kyle Spearrin
8340b22c2a UsingInAppPurchase prop on sub models 2019-09-19 16:31:11 -04:00
Kyle Spearrin
e9174ba9f4 iap pre-purchase check 2019-09-19 08:46:26 -04:00
Kyle Spearrin
9ddfe3e947 fix json serialization of receipt status 2019-09-18 17:43:17 -04:00
Kyle Spearrin
ed7da76bac add helpers and renewal info to receipt model 2019-09-17 22:58:06 -04:00
Kyle Spearrin
64ddcaaf0f isUser function 2019-09-17 16:55:40 -04:00
Kyle Spearrin
c82947a5f8 update receipt object 2019-09-16 16:23:07 -04:00
Kyle Spearrin
9e51eaea28 Apple Iap service 2019-09-16 09:22:22 -04:00
Kyle Spearrin
3037b95920 metadata repository for table storage 2019-09-13 16:02:01 -04:00
Kyle Spearrin
5c3bf78226 handle sub incomplete status 2019-08-12 10:42:14 -04:00
Kyle Spearrin
00e808d731 payment intent/method support for incomplete status 2019-08-09 23:56:26 -04:00
Kyle Spearrin
b11fd2fab8 handle PaymentMethods for PaymentSource billing info 2019-08-09 15:53:01 -04:00
Kyle Spearrin
48ec345702 update stripe SDK 2019-08-08 17:36:41 -04:00
Kyle Spearrin
8d09a7ad13 org license are version 5 2019-07-26 21:56:48 -04:00
Kyle Spearrin
f7be870bfe up KDF max to 2 million 2019-07-06 23:34:10 -04:00
Kyle Spearrin
2d63732085 normalize billing email 2019-06-12 22:09:32 -04:00
Kyle Spearrin
1c57492028 trim and tolower billing email 2019-06-12 22:08:53 -04:00
Sandro Jäckel
3feaaf8f01 Replace company.com with example.com (#502) 2019-05-22 20:07:39 -04:00
Kyle Spearrin
0c760cf9e1 overwrite existing users on import 2019-05-06 21:31:36 -04:00
Kyle Spearrin
b4148d3532 fix issues on cipher admin endpoints 2019-05-01 09:38:13 -04:00
Kyle Spearrin
9ed52da2f5 rearrange file 2019-04-14 22:45:58 -04:00
Kyle Spearrin
5bfed59f9c upgrade org api 2019-03-21 21:36:03 -04:00
Kyle Spearrin
fd8a8c8b67 make event message processing idempotent 2019-03-19 17:12:55 -04:00
Kyle Spearrin
01a293cf76 record installation devices 2019-03-19 00:39:03 -04:00
Kyle Spearrin
df6d55584f group/member update ids apis 2019-03-13 17:07:48 -04:00
Kyle Spearrin
7e920b955c amazon ses mail delivery service 2019-03-13 16:19:00 -04:00
Kyle Spearrin
75f01a5774 collection externalId 2019-03-07 15:18:27 -05:00
Kyle Spearrin
14ee85eea2 collection update model 2019-03-07 09:34:20 -05:00
Kyle Spearrin
62503068c6 events apis 2019-03-07 09:13:39 -05:00
Kyle Spearrin
a6b14131ef public collection apis 2019-03-06 09:15:23 -05:00
Kyle Spearrin
de1b00533f org members public api 2019-03-05 23:24:14 -05:00
Kyle Spearrin
df09b02ecc return collection associations with group response 2019-03-05 10:55:02 -05:00
Kyle Spearrin
42b104bc8f apikey apis for orgs 2019-03-04 09:52:43 -05:00
Kyle Spearrin
15cb0ad4c3 implement useapi and apikey 2019-03-02 15:09:33 -05:00
Kyle Spearrin
92d686ba36 public apis for groups 2019-03-01 17:38:22 -05:00
Kyle Spearrin
8d51700120 modelstate and exception handling for public apis 2019-03-01 17:30:44 -05:00
Kyle Spearrin
259d370edd add self host permission 2019-03-01 09:33:23 -05:00
Kyle Spearrin
6e4df8cb0b test group get api for swagger 2019-02-28 20:51:47 -05:00
Kyle Spearrin
0a82f472ef object is always first 2019-02-28 20:49:52 -05:00
Kyle Spearrin
aef68d4934 support for stripe sources in billing info 2019-02-27 10:16:46 -05:00
Kyle Spearrin
506fe28ee7 make payment method type required 2019-02-26 12:45:34 -05:00
Kyle Spearrin
3b8552b2fa billing info and tx management tools 2019-02-25 12:43:20 -05:00
Kyle Spearrin
b0c90bc4b3 amounts are positive always 2019-02-23 07:53:47 -05:00
Kyle Spearrin
c5b2a929d2 added credit email notification 2019-02-22 21:13:34 -05:00
Kyle Spearrin
4e99ae0dd6 send notification IPNs on bitpay invoice 2019-02-22 08:08:48 -05:00
Kyle Spearrin
fdaa9504d5 bitpay invoice api 2019-02-21 22:43:37 -05:00
Kyle Spearrin
01d324a8b4 support credit purchases and prorated upgrades 2019-02-20 23:54:27 -05:00
Kyle Spearrin
a9336a0e02 add support for passing payment method type 2019-02-19 17:13:21 -05:00
Kyle Spearrin
707c0ccb36 remove business country from org signup 2019-02-18 23:37:35 -05:00
Kyle Spearrin
250784d197 remove charge and add balance to billing models 2019-02-18 17:09:56 -05:00
Kyle Spearrin
2397c6d862 comment on Expiration 2019-02-18 16:25:09 -05:00
Kyle Spearrin
b036657d78 apis for subscription vs billing 2019-02-18 15:40:47 -05:00
Kyle Spearrin
67146cd4be send payment failed emails 2019-02-14 11:49:39 -05:00
Kyle Spearrin
f225b5d46a rename billing classes 2019-02-10 21:23:37 -05:00
Kyle Spearrin
d568b86e1e inject stripepaymentservice 2019-02-08 23:53:09 -05:00
Kyle Spearrin
a97a6216d7 return invoices and transactions on billing api 2019-02-08 23:24:48 -05:00
Kyle Spearrin
44630e9728 handle transactions on paypal webhook 2019-02-01 22:22:08 -05:00
Kyle Spearrin
9882815e4a custom id fields for paypal 2019-02-01 09:18:34 -05:00
Kyle Spearrin
25f3b76e6b added transactions table 2019-01-31 16:45:01 -05:00
Kyle Spearrin
952d624d72 change payment methods between stripe and paypal 2019-01-31 12:11:30 -05:00
Kyle Spearrin
abb1751bfe stripe invoice handling. return credit amount. 2019-01-29 17:44:31 -05:00
Kyle Spearrin
a34ca4700d upgrade stripe lib and breaking changes 2019-01-29 14:41:37 -05:00
Kyle Spearrin
e54a381dba setup: process paypal with stripe subscription 2019-01-29 13:12:11 -05:00
Kyle Spearrin
b19628c6f8 new device logged in email notification 2019-01-24 22:37:49 -05:00
Kyle Spearrin
73a2fa27ee dont check dots for duo 2018-12-20 15:20:48 -05:00
Kyle Spearrin
4a38713c4b return twofactor enabled property on org users api 2018-12-19 11:48:36 -05:00
Kyle Spearrin
866cfefd80 remove unused using 2018-12-19 10:52:02 -05:00
Kyle Spearrin
ac7c7b5077 move some 2fa logic functions to userService 2018-12-19 10:47:53 -05:00
Kyle Spearrin
0b20f64f2d premium access addon for families plans 2018-11-20 22:02:09 -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
84df4235c5 add missing string length checks 2018-10-22 09:40:44 -04:00
Kyle Spearrin
22033d075d increase group name length to 100 2018-10-22 09:34:26 -04:00
Kyle Spearrin
96b492fa07 apis for creating ciphers with org & collections 2018-10-19 12:07:31 -04:00
Kyle Spearrin
45a77c8903 manager group user apis 2018-10-18 08:38:22 -04:00
Kyle Spearrin
33bfd12b7d apis for managing collection users 2018-10-17 22:18:03 -04:00
Kyle Spearrin
bfc74060b6 add support for multiple u2f keys 2018-10-08 14:38:11 -04:00
Kyle Spearrin
cf73b168ee More CanAccessPremium checks 2018-08-28 17:40:08 -04:00
Kyle Spearrin
c41a1e0936 CanAccessPremium checks instead of User.Premium 2018-08-28 16:23:58 -04:00
Kyle Spearrin
18713054f6 add logout notification 2018-08-28 08:22:49 -04:00
Kyle Spearrin
3e2b220074 rename all to PBKDF2_SHA256 2018-08-27 19:57:45 -04:00
Kyle Spearrin
1b489daca1 send collection ids with cipher notification 2018-08-21 09:29:38 -04:00
Kyle Spearrin
0932189ccb support for user defined kdf parameters 2018-08-14 15:30:04 -04:00
Kyle Spearrin
cb902bf670 make ivalidatable 2018-08-02 23:13:17 -04:00
Kyle Spearrin
0cde13e0c6 azure queue notification service 2018-08-02 17:23:37 -04:00
Kyle Spearrin
14956f6383 encrypted string length attr 2018-08-02 08:57:32 -04:00
Kyle Spearrin
99df132cc7 null checks 2018-07-30 21:36:11 -04:00
Kyle Spearrin
5c31a35cfe store password history and revision dates 2018-07-27 17:49:27 -04:00
Kyle Spearrin
3b31ab85ff include usersgetpremium is org response 2018-07-24 11:04:32 -04:00
Kyle Spearrin
0d4ac29bc7 fix cancelled typo in areas 2018-07-20 17:00:05 -04:00
Kyle Spearrin
45db73c6e1 null check on license key 2018-07-20 13:58:24 -04:00
Kyle Spearrin
476ee53931 add renewal reminder date prop to users 2018-07-12 17:35:01 -04:00
Kyle Spearrin
f1b8301428 event page default is 50 2018-07-11 14:24:27 -04:00
Kyle Spearrin
9fee09e204 log event when removing user from group/collection 2018-07-09 23:07:04 -04:00
Kyle Spearrin
3ff217bb24 tolower requests 2018-06-28 07:45:24 -04:00
Kyle Spearrin
826b4a430f exclude domains from sync option 2018-06-25 21:29:04 -04:00
Kyle Spearrin
5c17f910fe remove culture from request model 2018-06-23 11:55:45 -04:00
Kyle Spearrin
de552be25f apis for bulk sharing 2018-06-13 14:03:44 -04:00
Kyle Spearrin
74874a1c38 return collection readonly details 2018-06-11 14:25:53 -04:00
Kyle Spearrin
72e95e2a98 allow org user reg. when reg. is disabled 2018-05-24 16:55:52 -04:00
Kyle Spearrin
053096c1a1 subscription renewal reminder emails 2018-05-11 08:29:23 -04:00
Kyle Spearrin
2c24e00bd7 update some libs 2018-04-17 22:36:30 -04:00
Kyle Spearrin
1fb3fbeacf Revert "update libs"
This reverts commit e7453bc036.
2018-04-17 08:11:08 -04:00
Kyle Spearrin
e7453bc036 update libs 2018-04-16 12:49:18 -04:00
Kyle Spearrin
389512d51e added org duo to 2fa flow 2018-04-03 14:31:33 -04:00
Kyle Spearrin
0d4ea5ce5b organization 2fa apis 2018-04-02 23:18:26 -04:00
Kyle Spearrin
367d3f65a6 use2fa org response 2018-04-02 17:20:06 -04:00
Kyle Spearrin
f7991d0da1 add use2fa to org response models 2018-04-02 17:15:20 -04:00
Kyle Spearrin
bcc224c02d stub out use2fa and twofactorproviders on orgs 2018-04-02 14:53:19 -04:00
Kyle Spearrin
92d6524b35 max storage already set in base ctor 2018-03-29 15:03:10 -04:00
Kyle Spearrin
c5131f3b30 add max storage gb 2018-03-29 14:06:23 -04:00
Kyle Spearrin
6e16581fe8 passwordless signin email 2018-03-21 21:19:03 -04:00
Kyle Spearrin
3d9d193bda passwordless signin for billing portal 2018-03-20 15:00:56 -04:00
Kyle Spearrin
9da30669af empty ctor for note model 2018-03-03 13:59:31 -05:00
Kyle Spearrin
48722e4b71 match default is null 2018-03-01 09:34:27 -05:00
Kyle Spearrin
2b276e9986 backwards compat apis on Uri 2018-03-01 09:29:49 -05:00
Kyle Spearrin
c8aabf0b40 MatchType proper => Match 2018-02-28 21:37:06 -05:00
Kyle Spearrin
3563a85318 add support for multiple uris on login model.
refactor cipher data models.
2018-02-28 21:23:46 -05:00
Kyle Spearrin
87497a5608 update libs 2018-02-21 22:31:33 -05:00
Kyle Spearrin
e9116f8c44 app cache with org ability checks on events 2017-12-19 16:02:39 -05:00
Kyle Spearrin
7dd2c524de new device type. return device & ip info on events 2017-12-18 13:59:31 -05:00
Kyle Spearrin
125eab11dc event paging 2017-12-15 15:23:57 -05:00
Kyle Spearrin
a9f232746e store device type and ip address on events 2017-12-15 10:50:06 -05:00
Kyle Spearrin
992fac1328 index table entity events 2017-12-14 17:23:46 -05:00
Kyle Spearrin
8898c58f3c type row keys should be ints 2017-12-14 16:20:59 -05:00
Kyle Spearrin
172fd2425e added org flag for UseEvents 2017-12-14 15:48:44 -05:00
Kyle Spearrin
2c4ce27ef2 fixes to event get APIs 2017-12-14 15:04:20 -05:00
Kyle Spearrin
adc23bf007 stub out API for events 2017-12-14 12:33:50 -05:00
Kyle Spearrin
ce1680a009 event sql table and repo 2017-12-12 14:22:22 -05:00
Kyle Spearrin
7b359053d6 stub out new scim api for dir sync 2017-12-12 13:22:37 -05:00
Kyle Spearrin
89d488739d re-order event interface 2017-12-08 23:12:19 -05:00
Kyle Spearrin
1bdf56d39f process messages with IEvent 2017-12-08 23:09:50 -05:00
Kyle Spearrin
c01fd359f0 use EventTableEntity instead of TableEntity 2017-12-08 14:03:07 -05:00
Kyle Spearrin
8c32765f4c custom plans with expiration are not trials 2017-12-04 20:58:23 -05:00
Kyle Spearrin
88c35f9f86 remove noOrg param 2017-12-04 16:44:17 -05:00
Kyle Spearrin
6639c61ee1 dont allow org id assignments on cipher creation 2017-12-04 16:43:18 -05:00
Kyle Spearrin
28770d3761 events for collections, groups, and org users 2017-12-01 16:00:30 -05:00
Kyle Spearrin
a8fefb54c4 cipher events 2017-12-01 14:06:16 -05:00
Kyle Spearrin
0662fc2163 log events to various organization indexes as well 2017-12-01 12:14:46 -05:00
Kyle Spearrin
d94c2a8f50 log user events 2017-12-01 10:07:14 -05:00
Kyle Spearrin
f4586002c4 organize event models. stub out event services 2017-12-01 09:22:04 -05:00
Kyle Spearrin
c988171f09 welcome email should use web vault url hostname 2017-11-29 13:40:56 -05:00
Kyle Spearrin
0502ba2451 only get collection info when in an org 2017-11-24 09:28:38 -05:00
Kyle Spearrin
a956b826cd include collections in sync 2017-11-22 09:53:14 -05:00
Kyle Spearrin
aa045f7775 fix == bug in licensing VerifyData 2017-11-12 22:57:25 -05:00
Kyle Spearrin
ed826f4b28 version > 1 on UsersGetPremium check 2017-11-07 21:51:50 -05:00
Kyle Spearrin
f7cb6e403d dont check UsersGetPremium for version 1 licenses 2017-11-07 21:12:50 -05:00
Kyle Spearrin
5c7ff94657 user BillingResponseModel without licensing 2017-11-07 11:58:15 -05:00
Kyle Spearrin
0fdb9b3d2f change personal plan to family. allow self host 2017-11-06 16:01:58 -05:00
Kyle Spearrin
50a4202739 email 2fa is not case sensitive 2017-11-02 23:29:58 -04:00
Kyle Spearrin
a989a800f7 validate master password on purge 2017-10-25 21:38:54 -04:00
Kyle Spearrin
e41461f8fc org tax information 2017-10-25 12:41:07 -04:00
Kyle Spearrin
b0fd99b218 additional identity fields 2017-10-09 11:23:20 -04:00
Kyle Spearrin
7e848e5c55 added identity cipher type 2017-10-06 15:47:31 -04:00