1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 16:12:49 -05:00
Commit Graph

40 Commits

Author SHA1 Message Date
23b0a1f9df Run dotnet format (#1764) 2021-12-16 15:35:09 +01:00
fd37cb5a12 Add support for Key Connector OTP and account migration (#1663)
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2021-11-09 16:37:32 +01:00
c5d5601464 Add support for crypto agent (#1623) 2021-10-25 15:09:14 +02:00
4e486e5f5d [Reset Password v1] Update DB for Forced Reset (#1467)
* [Reset Password v1] Force Temp Password Changes

* Updated EF migrations/scripts

* Updating user sprocs with default bit value
2021-07-21 11:47:11 -05:00
b13dda2799 Postgres & MySql Support For Self-Hosted Installations (#1386)
* EF Database Support Init (#1221)

* scaffolding for ef support

* deleted old postgres repos

* added tables to oncreate

* updated all the things to .NET 5

* Addition to #1221: Migrated DockerFiles from dotnet/3.1 to  5.0 (#1223)

* Migrated DockerFiles from dotnet/3.1 to  5.0

* Migrated SSO/Dockerfile from dotnet 3.1 to 5.0

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>

* EFDatabaseSupport: Updated links and description in README.md and SETUP.md (#1232)

* Updated requirements in README.md

* Updated link to documentation of app-secrets

* upgraded dotnet version to 5.0

* Ef database support implementation examples (#1265)

* mostly finished testing the user repo

* finished testing user repo

* finished org, user, ssoconfig, and ssouser ef implementations

* removed unused prop

* fixed a sql file

* fixed a spacing issue

* fixed a spacing issue

* removed extra database creation

* refactoring

* MsSql => SqlServer

* refactoring

* code review fixes

* build fix

* code review

* continued attempts to fix the the build

* skipped another test

* finished all create test

* initial pass at several repos

* continued building out repos

* initial pass at several repos

* initial pass at device repo

* initial pass at collection repo

* initial run of all Entity Framework implementations

* signup, signin, create/edit ciphers works

* sync working

* all web vault pages seem to load with 100% 200s

* bulkcopy, folders, and favorites

* group and collection management

* sso, groups, emergency access, send

* get basic creates matching on all repos

* got everything building again post merge

* removed some IDE config files

* cleanup

* no more notimplemented methods in the cipher repo

* no more not implementeds everywhere

* cleaned up schema/navigation properties and fixed tests

* removed a sql comment that was written in c# style

* fixed build issues from merge

* removed unsupported db providers

* formatting

* code review refactors

* naming cleanup for queries

* added provider methods

* cipher repo cleanup

* implemented several missing procedures from the EF implementation surround account revision dates, keys, and storage

* fixed the build

* added a null check

* consolidated some cipher repo methods

* formatting fix

* cleaned up indentation of queries

* removed .idea file

* generated postgres migrations

* added mysql migrations

* formatting

* Bug Fixes & Formatting

* Formatting

* fixed a bug with bulk import when using MySql

* code review fixes

* fixed the build

* implemented new methods

* formatting

* fixed the build

* cleaned up select statements in ef queries

* formatting

* formatting

* formatting

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2021-07-08 16:35:48 +00:00
25a9991908 Implement User-based API Keys (#981)
* added column ApiKey to dbo.User

* added dbo.User.ApiKey to User_Update

* added dbo.User.ApiKey to User_Create

* wrote migration script for implementing dbo.User.ApiKey

* Added ApiKey prop to the User table model

* Created AccountsController method for getting a user's API Key

* Created AccountsController method for rotating a user API key

* Added support to ApiClient for passed-through ClientSecrets when the request comes from the cli

* Added a new conditional to ClientStore to account for user API keys

* Wrote unit tests for new user API Key methods

* Added a refresh of dbo.UserView to new migration script for ApiKey

* Let client_credentials grants into the custom token logic

* Cleanup for ApiKey auth in the CLI feature

* Created user API key on registration

* Removed uneeded code for user API keys

* Changed a .Contains() to a .StartsWith() in ClientStore

* Changed index that an array is searched on

* Added more claims to the user apikey clients

* Moved some claim finding logic to a helper method
2020-11-10 15:15:29 -05: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
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
fca7b162bf Reference id storage and signup 2020-06-25 12:28:22 -04:00
9800b752c0 Changed all C# control flow block statements to include space between keyword and open paren 2020-03-27 14:36:37 -04:00
64ddcaaf0f isUser function 2019-09-17 16:55:40 -04:00
1c57492028 trim and tolower billing email 2019-06-12 22:08:53 -04:00
d568b86e1e inject stripepaymentservice 2019-02-08 23:53:09 -05:00
9882815e4a custom id fields for paypal 2019-02-01 09:18:34 -05:00
952d624d72 change payment methods between stripe and paypal 2019-01-31 12:11:30 -05:00
e54a381dba setup: process paypal with stripe subscription 2019-01-29 13:12:11 -05:00
4a38713c4b return twofactor enabled property on org users api 2018-12-19 11:48:36 -05:00
ac7c7b5077 move some 2fa logic functions to userService 2018-12-19 10:47:53 -05:00
cf73b168ee More CanAccessPremium checks 2018-08-28 17:40:08 -04:00
c41a1e0936 CanAccessPremium checks instead of User.Premium 2018-08-28 16:23:58 -04:00
3e2b220074 rename all to PBKDF2_SHA256 2018-08-27 19:57:45 -04:00
0932189ccb support for user defined kdf parameters 2018-08-14 15:30:04 -04:00
476ee53931 add renewal reminder date prop to users 2018-07-12 17:35:01 -04:00
bcc224c02d stub out use2fa and twofactorproviders on orgs 2018-04-02 14:53:19 -04:00
3d9d193bda passwordless signin for billing portal 2018-03-20 15:00:56 -04:00
55ae6f12ad added new expiration columns to org/users 2017-08-12 10:43:52 -04:00
a1d064ed9e license verification services for user/org 2017-08-09 17:01:37 -04:00
cfc80f8d1e billing fixes and added gateway to subscriber 2017-07-28 14:24:07 -04:00
082b53e133 refactor for addtnl. payment service (braintree) 2017-07-28 12:09:12 -04:00
5a4bfe4e61 update libs and cleanup 2017-07-14 09:06:35 -04:00
295d6510a9 premium checks on 2fa providers 2017-07-06 16:56:12 -04:00
d346ee5169 APIs for premium. Billing helpers. 2017-07-06 14:55:58 -04:00
284078e946 database adjustments and storage for attachments 2017-06-30 14:41:57 -04:00
61a436906c remove provider from user table 2017-06-24 14:40:46 -04:00
2eaaecd95c remove user twofactorenabled property 2017-06-19 22:25:19 -04:00
b5fbe23be2 remove authenticatorkey from user 2017-06-07 14:32:08 -04:00
ecc2468409 refactor code to with user TwoFactorProviders 2017-06-07 14:14:34 -04:00
811bbbfe0a added two factor providers to user object 2017-06-06 17:15:19 -04:00
a01d5d9a51 "user key" schema and api changes 2017-05-31 09:54:32 -04:00
bd0c960e9f move domains to Models.Table 2017-03-08 21:45:08 -05:00