84b522bc06
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 |
||
---|---|---|
.. | ||
accountmanagementapikeys | ||
consoleauth | ||
consolewasm | ||
consoleweb | ||
wasm | ||
apikeys_test.go | ||
apikeys.go | ||
attribution_test.go | ||
auth.go | ||
billinghistoryitem.go | ||
buckets.go | ||
database.go | ||
mfa.go | ||
projectmembers_test.go | ||
projectmembers.go | ||
projects_test.go | ||
projects.go | ||
projectusagelimits.go | ||
recaptcha_test.go | ||
recaptcha.go | ||
registrationtoken.go | ||
request.go | ||
resetpasswordtoken_test.go | ||
resetpasswordtoken.go | ||
service_test.go | ||
service.go | ||
sortdirection.go | ||
users_test.go | ||
users.go | ||
validation.go |