1
0
mirror of https://github.com/bitwarden/server synced 2025-12-21 18:53:41 +00:00
Commit Graph

13 Commits

Author SHA1 Message Date
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
Kyle Spearrin
623cd36bd4 upgrade identity server 4 to v4 (#842)
* upgrade identity server 4 to v4

* remove script ref
2020-07-30 17:00:13 -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
7db36e0005 api adjustments for manager role and collections 2018-10-17 14:58:45 -04:00
Kyle Spearrin
2562d5a40d reference OrganizationMembership instead 2018-08-31 17:05:27 -04:00
Kyle Spearrin
389512d51e added org duo to 2fa flow 2018-04-03 14:31:33 -04:00
Kyle Spearrin
f2183246d2 update libs, aspnet core 20, & id server 2.0 2017-10-06 11:38:47 -04:00
Kyle Spearrin
94693ec408 create jobs controller running system tasks 2017-08-17 09:41:23 -04:00
Kyle Spearrin
4585af5a85 validate organization licenses 2017-08-17 00:12:11 -04:00
Kyle Spearrin
b14f6d080e verify and disable premium from license check 2017-08-16 17:08:20 -04:00
Kyle Spearrin
d42a47e5f0 tweaks to tokens 2017-07-01 23:20:30 -04:00
Kyle Spearrin
d8c0994ed3 remove deprecated jwt bearer authentication method 2017-06-06 23:19:42 -04:00
Kyle Spearrin
49bee6935a move identityserver libs into core 2017-05-05 16:11:50 -04:00