Move Composio, logo.dev and Antigravity keys into Settings
The three third-party keys were hardcoded or read from the environment. Operators now enter them in Settings > Integrations; they are stored encrypted in the app-wide integration_keys table (migration 058). An agent holding connector grants fails loudly when no Composio key is saved. The goal-review test no longer depends on absolute dates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1ea040c0f0
commit
56b0594f91
36 files changed
+430
-100
No files matched your search
@@ -3,7 +3,7 @@ import { describe, expect, test } from "vitest";
|
||||
import { interpretPollResponse } from "../../src/main/services/oauth/github-copilot-flow";
|
||||
import { interpretKimiPollResponse } from "../../src/main/services/oauth/kimi-code-flow";
|
||||
import { extractAccountId } from "../../src/main/services/oauth/openai-codex-flow";
|
||||
import { readProjectId, resolveAntigravityClientSecret } from "../../src/main/services/oauth/google-antigravity-flow";
|
||||
import { readProjectId, requireAntigravityClientSecret } from "../../src/main/services/oauth/google-antigravity-flow";
|
||||
import { generatePkce } from "../../src/main/services/oauth/pkce";
|
||||
import { parseAccessToken, parseAccountToken } from "../../src/main/services/provider-auth-profiles";
|
||||
|
||||
@@ -93,12 +93,12 @@ describe("antigravity project discovery", () => {
|
||||
});
|
||||
|
||||
describe("antigravity oauth configuration", () => {
|
||||
test("reads the client secret from runtime environment", () => {
|
||||
expect(resolveAntigravityClientSecret({ AGENTCOMPANY_GOOGLE_ANTIGRAVITY_CLIENT_SECRET: " live-secret " })).toBe("live-secret");
|
||||
test("passes a saved client secret through", () => {
|
||||
expect(requireAntigravityClientSecret("live-secret")).toBe("live-secret");
|
||||
});
|
||||
|
||||
test("requires an explicit client secret", () => {
|
||||
expect(() => resolveAntigravityClientSecret({})).toThrow("AGENTCOMPANY_GOOGLE_ANTIGRAVITY_CLIENT_SECRET");
|
||||
test("requires a client secret saved in Settings", () => {
|
||||
expect(() => requireAntigravityClientSecret(null)).toThrow("Settings > Integrations");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user