canister-auth-headers.mjs
10 lines 388 B
Raw
sha256:87f84653ce4706be8c65b0c4494ed6fb891213cca82db2b1824772cddc41a752 feat(auth): durable MCP OAuth refresh via shared strong sto… Agent minor 58 days ago
1 /**
2 * ICP canister HTTP expects X-Gateway-Auth when the canister has a non-empty
3 * gateway_auth_secret (see hub/icp `gatewayAuthorized`). The gateway proxy
4 * always merges this; direct fetch helpers must do the same.
5 */
6 export function canisterAuthHeaders() {
7 const secret = process.env.CANISTER_AUTH_SECRET || '';
8 if (!secret) return {};
9 return { 'x-gateway-auth': secret };
10 }
File History 5 commits
sha256:87f84653ce4706be8c65b0c4494ed6fb891213cca82db2b1824772cddc41a752 feat(auth): durable MCP OAuth refresh via shared strong sto… Agent minor 58 days ago
sha256:873e30b7fafe601346295f8f4289f388f21d8f715f28584d5481899ba2b714fc Merge pull request #249 from aaronrene/muse-mirror Agent 75 days ago
sha256:d8c648b20a4d53b2673c5c082ee7edfa7b2fc9b11080832da1f38807b6bf940b fix(7C-L1b): route hosted delegation proposals through cani… Human minor 77 days ago
sha256:2827ba9e7632a4b141c50caf1e8f7d77abbc3515be20e7465f2bccb0ac4edf91 fix: repair endpoint now sets has_active_subscription when … Human minor 97 days ago