Cloudflare is rolling out Managed OAuth for Access, a new feature designed to bridge the gap between human users and AI agents accessing internal applications. Previously, applications secured by Cloudflare Access presented a login page that agents could not navigate, effectively blocking their access.
This new capability, now in open beta, allows any OAuth 2.0 compliant agent to authenticate with internal apps. Cloudflare Access acts as the authorization server, guiding agents through a standardized OAuth flow. This process involves dynamic client registration and a PKCE authorization flow, ultimately granting the agent a token to make authenticated requests on behalf of the user.
Making Internal Apps Agent-Ready
Cloudflare has thousands of internal applications, ranging from critical business tools to prototypes. Securing these with Cloudflare Access worked well for human users, but posed a challenge for automated agents. The company previously implemented a workaround using the cloudflared CLI to fetch JWTs for agents.
Managed OAuth eliminates the need for such workarounds. A single click within the Access application settings enables this functionality. Agents can then discover the authorization endpoint at /.well-known/oauth-authorization-server on the app's domain.
This enables agents to securely access data and functionality within internal applications, aligning with the growing trend of AI agents performing tasks within enterprise environments. This is particularly relevant for applications that may not have readily available APIs or CLIs, as mentioned in discussions around Managed OAuth for Access.
