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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user