storj/satellite/console/consoleweb/consoleql
Cameron 84b522bc06 satellite/console: create account management api keys service
We are in the process of creating an api to allow users to manage their
accounts programmatically. We would like to use api keys for
authorization. We were originally going to create an entirely new table
for these api keys, but seeing as we already have 2 other tables for
keys/tokens, api_keys and oauth_tokens, we thought it might be better to
use one of these. We're using oauth_tokens.

We create a new oidc.OAuthTokenKind for account management api keys:
KindAccountManagementTokenV0. We made the key versioned because we
likely want to improve the implementation in the future, but we want to
get something functional out the door ASAP because the account management
api feature is highly desired.

Add a new method to oidc.OAuthTokens interface for revoking v0 account
management api keys, RevokeAccountManagementTokenV0. Add update method
to dbx implementation to allow updating the expiration. We will revoke
these keys by setting the expiration to 0 so they are expired.

Change-Id: Ideb8ae04b23aa55d5825b064b5e43e32eadc1fba
2022-03-23 17:02:20 +00:00
..
testdata web/satellie: added missing alt attribute to img tags (#3172) 2019-10-04 16:22:26 +03:00
apikey.go all: add missing dots 2020-08-11 17:50:01 +03:00
mail.go all: add missing dots 2020-08-11 17:50:01 +03:00
mutation_test.go satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
mutation.go satellite/console: UpdateProject changes 2021-09-01 20:30:26 +00:00
project.go satellite/{satellitedb, web}: display object count in satellite UI 2021-11-01 18:26:13 +00:00
projectmember.go all: add missing dots 2020-08-11 17:50:01 +03:00
query_test.go satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
query.go web/satellite, web/marketing: remove referral program related UI code 2021-02-08 11:07:35 -05:00
reward.go all: add missing dots 2020-08-11 17:50:01 +03:00
schema.go all: fix dots 2020-07-16 14:58:28 +00:00
typecreator.go web/satellite,satellite/console: Allow paid tier users to edit limits 2021-08-18 00:07:10 +00:00
user.go all: add missing dots 2020-08-11 17:50:01 +03:00