credential broker: Play tokens from POST /api/google/token (cached, single flight, local key fallback), grants and APIs per package in validate, Play write preflight, apps check and the desktop Accounts view; Google 403 names the API or grant, no retry
This commit is contained in:
parent
304407e523
commit
2c5e30090f
27 changed files with 1145 additions and 43 deletions
|
|
@ -14,6 +14,10 @@ const machine = mkdtempSync(join(tmpdir(), 'storebound-machine-'));
|
|||
process.env.STOREBOUND_CREDENTIALS_DIR = join(machine, 'credentials');
|
||||
process.env.STOREBOUND_REGISTRY = join(machine, 'projects.json');
|
||||
process.env.STOREBOUND_LOCK_DIR = join(machine, 'locks');
|
||||
// the credential broker of this machine (~/.storebound/broker.json, cli/lib/broker.ts) is never asked either
|
||||
process.env.STOREBOUND_BROKER_CONFIG = join(machine, 'broker.json');
|
||||
delete process.env.STOREBOUND_BROKER_URL;
|
||||
delete process.env.STOREBOUND_BROKER_KEY_FILE;
|
||||
|
||||
// Commands run in-process set process.exitCode on purpose (a check with problems, a declined confirmation:
|
||||
// DECLINED_EXIT in cli/lib/ctx.ts). Tests assert it where it matters; it must not leak into bun test's own exit code.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue