How are you guys safely giving agents API access without giving them "God Mode"? (The OAuth 'All-or-Nothing' trap)
We’ve been building multi-agent orchestration systems with LangGraph, and binding tools to agents is incredibly easy. But the moment we try to connect those tools to a user's sensitive data in production, the standard OAuth model completely breaks down.
Take a Gmail integration: If I want a LangChain agent to simply draft an email reply, Google’s standard OAuth forces me to request scopes that also grant the permission to Send and Delete emails. It’s an all-or-nothing trap.
System prompts are not a real security boundary, and Human-in-the-loop defeats the purpose of autonomous background tasks.
After 13 years of building enterprise SaaS, I got so frustrated by this that our team stopped building the agentic app itself and started building the infrastructure to fix it. We are engineering an Agent Access Security Broker (AASB)—a B2B proxy layer that sits between the agent's tool calls and the user's data so developers can enforce strict boundaries (like a hard "Draft-Only" lock).
Before we go deeper into this architecture, I want to know how the LangChain community is currently hacking around this.
- Are you rolling your own custom middleware to intercept tool calls?
- Restricting scopes at the API gateway level?
- Or just relying on HITL?
Would love to hear your approaches.


![Image 1 — How I solved "Conflict of Laws" in a financial RAG —
ITA 1961 vs ITA 2025 parallel retrieval with
graceful degradation [with screenshots]](https://preview.redd.it/puissqw665tg1.png?width=1082&format=png&auto=webp&s=5835abbfab55d822946dd4fc9adebd323faa917a)
![Image 2 — How I solved "Conflict of Laws" in a financial RAG —
ITA 1961 vs ITA 2025 parallel retrieval with
graceful degradation [with screenshots]](https://preview.redd.it/dokerqw665tg1.png?width=1077&format=png&auto=webp&s=cd06dd5a536b6d6c9318cbb4d35faaf38923aeae)
![Image 3 — How I solved "Conflict of Laws" in a financial RAG —
ITA 1961 vs ITA 2025 parallel retrieval with
graceful degradation [with screenshots]](https://preview.redd.it/6qsmcqw665tg1.png?width=1573&format=png&auto=webp&s=f4bc5de548680fa9f03ee6ae6dd70c9ac1b5ae28)
![Image 4 — How I solved "Conflict of Laws" in a financial RAG —
ITA 1961 vs ITA 2025 parallel retrieval with
graceful degradation [with screenshots]](https://preview.redd.it/lzx8urw665tg1.png?width=1553&format=png&auto=webp&s=fc3331d5d2e3e599bba826fc3a16c893ccb69b91)
![Image 5 — How I solved "Conflict of Laws" in a financial RAG —
ITA 1961 vs ITA 2025 parallel retrieval with
graceful degradation [with screenshots]](https://preview.redd.it/rq2wnpw665tg1.png?width=1873&format=png&auto=webp&s=de0317c55a23c78541517536337c2e1e56055d2b)