1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00
bitwarden-server/util
Addison Beck 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
..
Attachments adjust params for attachments server 2020-11-05 11:39:15 -05:00
DigitalOceanMarketplace bitwarden update script without .sh suffix 2019-08-22 15:19:06 -04:00
Migrator Implement User-based API Keys (#981) 2020-11-10 15:15:29 -05:00
MsSql Add support building from path that contains space (#815) 2020-07-17 08:28:31 -04:00
Nginx accept larger headers 2020-09-02 16:44:54 -04:00
Server fix null or whitespace logic 2020-11-04 16:15:38 -05:00
Setup configure send for self-host 2020-11-03 14:29:07 -05:00