Broker-and-proxy OAuth flow for email, calendar, and GitHub agents
Security teams can pilot a central OAuth broker for agents that need email, calendar, GitHub, or internal API access. The broker runs the browser login flow and receives the real OAuth token. It gives the agent a signed JWT that copies nonsecret claims and stores the real token as an encrypted claim. The agent sends API calls through a proxy, and the proxy verifies the broker signature, decrypts the embedded token, swaps it into the Authorization header, and forwards the request.
A useful first test is small: put the flow in front of one high-risk agent and instrument the container filesystem, tool outputs, logs, and repository writes. The pass condition is that the upstream OAuth token never appears in the agent runtime while the agent can still inspect scope-like claims and complete normal API calls. The same pilot should record latency and failure modes because the source proposal gives architecture, not deployment measurements.