▲ | TrueDuality 3 days ago | |||||||||||||||||||||||||
There are other options that allow long-lived access with naturally rotating keys without OAuth and only a tiny amount of complexity increase that can be managed by a bash script. The refresh token/bearer token combo is pretty powerful and has MUCH stronger security properties than a bare API key. | ||||||||||||||||||||||||||
▲ | maxwellg 3 days ago | parent | next [-] | |||||||||||||||||||||||||
Refresh tokens are only really required if a client is accessing an API on behalf of a user. The refresh token tracks the specific user grant, and there needs to be one refresh token per user of the client. If a client is accessing an API on behalf of itself (which is a more natural fit for an API Key replacement) then we can use client_credentials with either client secret authentication or JWT bearer authentication instead. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | rahkiin 3 days ago | parent | prev | next [-] | |||||||||||||||||||||||||
If api keys do not need to ve stateless, every api key can become a refresh token with a full permission and validity lookup. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | 0x1ceb00da 3 days ago | parent | prev [-] | |||||||||||||||||||||||||
> The refresh token/bearer token combo is pretty powerful and has MUCH stronger security properties than a bare API key I never understood why. | ||||||||||||||||||||||||||
|