storj/satellite/payments/stripecoinpayments
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
..
accounts_test.go satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
accounts.go satellite/{console,payments},web/satellite: save signup promo code to newly registered users 2022-01-21 15:02:22 +00:00
clearing.go satellite/payments: chore to migrate big.Float values out of db 2022-02-16 23:48:30 +00:00
client.go satellite/payments: Implement coupon codes 2021-07-26 17:15:55 +00:00
conversion.go satellite/payments: specialized type for monetary amounts 2021-09-28 23:27:44 +00:00
coupons.go satellite/{payments,satellitedb}: Remove custom coupon implementation 2021-10-11 19:47:00 +00:00
creditcards_test.go satellite/{payments,admin}: add deletion of user creditcards on account deletion 2020-08-27 10:18:19 +00:00
creditcards.go satellite/payments: Implement coupon codes 2021-07-26 17:15:55 +00:00
customers_test.go satellite/payments/stripecoinpayments: fix test flakyness 2020-04-29 12:06:35 +00:00
customers.go satellite/billing: make stripe invoice generation work with multiregion satellites 2021-05-06 11:51:03 -06:00
db.go satellite/{payments,satellitedb}: Remove custom coupon implementation 2021-10-11 19:47:00 +00:00
invoices.go satellite/payments: Fix discount when listing invoices. 2021-10-22 10:16:27 -04:00
projectrecords_test.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
projectrecords.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
service_test.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
service.go satellite/payments: chore to migrate big.Float values out of db 2022-02-16 23:48:30 +00:00
stripemock.go satellite/{console,payments},web/satellite: save signup promo code to newly registered users 2022-01-21 15:02:22 +00:00
tokens_test.go satellite/payments: Implement coupon codes 2021-07-26 17:15:55 +00:00
tokens.go satellite/payments/stripecoinpayments: fix nil panic during storj token 2021-10-05 12:13:14 -04:00
transactions_test.go satellite/payments: chore to migrate big.Float values out of db 2022-02-16 23:48:30 +00:00
transactions.go satellite/payments: chore to migrate big.Float values out of db 2022-02-16 23:48:30 +00:00