Flow 1
BFF in front of a chat UI
- 1
Browser talks only to your BFF with session cookies.
- 2
BFF performs authorization code + PKCE as a confidential client.
- 3
BFF calls MCP/SaaS APIs with the access token. The model never sees the token.
This is the architecture that makes prompt injection unable to exfiltrate the Bearer token — it never entered the browser or the prompt.