feat(clients): google service-account OAuth and per-endpoint credential choice

ServiceAccountAuth signs an RS256 JWT with wolfCrypt from the key file in
GOOGLE_APPLICATION_CREDENTIALS and exchanges it for a self-refreshing bearer
token. GoogleClient holds a key and an OAuth credential and uses OAuth
everywhere except express endpoints, which only accept the key. Signing is
tested with generated RSA keys and public-key verification.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 04:29:58 +02:00
co-authored by Claude Sonnet 5.5
parent 6d744a433f
commit 90629bbbfc
11 changed files with 493 additions and 7 deletions
+2
View File
@@ -11,6 +11,8 @@ namespace molo::google {
struct ServiceEndpoint {
std::string name;
std::string base_url; // No trailing slash.
// Express-mode endpoints accept only an API key: never send OAuth there.
bool prefer_key = false;
};
namespace endpoints {