AIニュース最前線
最新ニュースAI日報Hacker日報週報動画AIツールトレンド企業

AIニュース最前線

世界中のAI最新情報を日本語で毎時更新

最新ニュース日報トレンド企業プレミアムRSS
© 2026 ainew.jp特定商取引法に基づく表記
ニュース一覧元記事を開く
Cloudflare Blog·2026年4月14日 22:00·約4分で読める

アクセスのためのマネージドOAuth:内部アプリをワンクリックでエージェント対応に

#OAuth 2.0#AIエージェント認証#Cloudflare Access#RFC 7591/7636#エンタープライズAI
TL;DR

Cloudflareは内部アプリの認証をエージェントに対応させるため、Cloudflare AccessでOAuth 2.0標準フローをワンクリックで有効化する「Managed OAuth」機能を公開ベータとして提供開始した。

AI深層分析2026年4月14日 23:44
4
重要/ 5段階
深度40%
4
関連度30%
5
実用性20%
4
革新性10%
3

キーポイント

1

エージェント認証の課題解決

従来のAccessフローではエージェントがログインページにリダイレクトされるだけだったが、OAuth標準規格を活用して認証を可能にした。

2

技術仕様の実装

Cloudflare Accessが認可サーバーとして動作し、RFC 7591(ダイナミッククライアント登録)とRFC 7636(PKCEフロー)に準拠したトークン発行を実現。

3

シームレスな運用と将来展望

ワンクリック有効化で実装コストを削減し、無料枠の提供とOrganizationベータ機能による跨アカウント連携も予定されている。

4

Managed OAuthによる即時のエージェント対応

コード変更やリトロフィット不要で、Accessを既存の内部アプリの前段に配置するだけでエージェントからのアクセスを即座に可能にする。

5

ユーザー権限に基づくエージェントの動作

サービスアカウントや静的認証情報ではなく、エージェントは認可された人間のユーザーに代わって動作し、その権限範囲内でのみ操作を実行する。

6

完全な監査と責任の所在の明確化

エージェントによるすべての操作は実行元の人間に帰属可能であり、混乱したdeputy問題や監査ログの破綻を防ぐために必須のアプローチとなる。

7

RFC 9728の標準化とエージェントへの適用

RFC 9728はエージェントが認証情報を発見・処理する仕組みを標準化し、OAuth保護されたWebページやREST APIへのアクセスを可能にする。

影響分析・編集コメントを表示

影響分析

本機能は、企業内のAIエージェント展開において長年課題だった「認証の相互運用性」を標準規格レベルで解決する。これにより、開発者は複雑なカスタム認証ロジックを構築せずとも、既存のOAuth対応エージェントフレームワークをそのまま内部システムに接続できる。インフラ層での標準化は、エンタープライズAIの実用化を加速させる重要な一歩となる。

編集コメント

内部システムへのエージェント接続における認証は実務上の最大の障壁の一つだったが、CloudflareがOAuth 2.0標準をインフラ層で抽象化したのは合理的な選択だ。今後は他のクラウドベンダーも同様の標準化を進めることで、エージェントエコシステムの相互運用性がさらに高まると予想される。

これらの各要素はエージェントにとって重要な役割を果たします。Cloudflare自体も、Cloudflare API(Code Modeを使用して構築)、Wrangler CLI、Agent Skills、そしてプラグイン用のMCPサーバーを提供しています。しかし、RFC 9728をサポートすることで、たとえこれらが事前にインストールされていなくても、エージェントが明確な前進の道筋を得られるようにします。エージェントが信頼されていないコードを実行するサンドボックス環境を持っている場合、人間がアクセス権を付与したAPIを呼び出すコードを単に記述して実行することができます。私たちは、あなたのエージェントがCloudflareの使用方法を理解できるよう、Cloudflare自身のAPIに対するこのサポートを実現するために取り組んでいます。

近日公開予定: 複数のCloudflareアカウント間で単一のアイデンティティプロバイダー(IdP)を共有

Cloudflareでは、私たち自身の内部アプリケーションが数十の異なるCloudflareアカウントにデプロイされており、それらはすべて1つの組織の一部です。組織は、管理者が複数のCloudflareアカウントにわたってユーザーや設定を管理し、分析を表示するための新しく導入された方法です。私たちは多くのお客様と同じ課題に直面してきました。各CloudflareアカウントはIdPを個別に設定する必要があり、そのためCloudflare Accessは私たちのアイデンティティプロバイダーを使用します。この設定は組織全体で一貫していることが重要です。あるCloudflareアカウントが、シングルサインオン(SSO)による認証を要求するのではなく、誤ってワンタイムPINだけでユーザーがサインインできるようにしてしまうことは望ましくありません。

この問題を解決するため、現在、Cloudflareアカウント間でアイデンティティプロバイダーを共有できるようにする作業を進めており、組織が組織内のすべてのアカウントで使用する単一の主要なIdPを指定できる方法を提供します。

組織内で新しいCloudflareアカウントが作成されると、管理者はワンクリックで主要なIdPへのブリッジを設定できるようになり、アカウント間のAccessアプリケーションを1つのアイデンティティプロバイダーで保護できるようになります。これにより、アカウントごとにIdPを手動で設定する必要がなくなり、多くのチームや個人がそれぞれ独自のアカウントを運営している組織にとってスケールしないプロセスを解消します。

今後の展開

企業全体で、あらゆる役割や業務機能の人々が現在、内部アプリケーションを構築するためにエージェントを使用しており、自分のエージェントが内部アプリケーションからコンテキストにアクセスできることを期待しています。私たちは、Workers PlatformとCloudflare Oneがより良く連携するようにすることで、内部ソフトウェア開発におけるこの段階的な成長に対応しています。これにより、Cloudflare上で内部アプリケーションを構築し保護することが容易になります。

近日中に以下のようなさらなる展開をご期待ください:

  • Cloudflare AccessとCloudflare Workersの間のより直接的な統合。JWT(JSON Web Token)を検証したり、特定のWorkerが多くのルートのどれで公開されているかを覚えておく必要がなくなります。
  • wrangler dev --tunnel — 新しいものを構築していて、デプロイ前に他の人と共有したい場合に、ローカル開発サーバーを他の人に公開する簡単な方法。
  • Cloudflare AccessおよびCloudflare API全体のためのCLIインターフェース。
  • Agents Week 2026期間中のさらなる発表。

Cloudflare Accessの背後にある内部アプリケーションでManaged OAuthを有効にする

Managed OAuthは現在、オープンベータとしてすべてのCloudflareのお客様が利用可能です。Cloudflareダッシュボードにアクセスして、あなたのAccessアプリケーションで有効にしてください。Cloudflare Workers上に構築されたものであれ、他の場所でホストされているものであれ、あらゆる内部アプリケーションに使用できます。そして、もしあなたがまだWorkers Platform上で内部アプリケーションを構築していないなら、それはあなたのチームがゼロから本番環境でデプロイ(および保護)されるまでの最速の方法です。

原文を表示

We have thousands of internal apps at Cloudflare. Some are things we’ve built ourselves, others are self-hosted instances of software built by others. They range from business-critical apps nearly every person uses, to side projects and prototypes.

All of these apps are protected by Cloudflare Access. But when we started using and building agents — particularly for uses beyond writing code — we hit a wall. People could access apps behind Access, but their agents couldn’t.

Access sits in front of internal apps. You define a policy, and then Access will send unauthenticated users to a login page to choose how to authenticate.

imageimage

Example of a Cloudflare Access login page

This flow worked great for humans. But all agents could see was a redirect to a login page that they couldn’t act on.

Providing agents with access to internal app data is so vital that we immediately implemented a stopgap for our own internal use. We modified OpenCode’s web fetch tool such that for specific domains, it triggered the cloudflared CLI to open an authorization flow to fetch a JWT (JSON Web Token). By appending this token to requests, we enabled secure, immediate access to our internal ecosystem.

While this solution was a temporary answer to our own dilemma, today we’re retiring this workaround and fixing this problem for everyone. Now in open beta, every Access application supports managed OAuth. One click to enable it for an Access app, and agents that speak OAuth 2.0 can easily discover how to authenticate (RFC 9728), send the user through the auth flow, and receive back an authorization token (the same JWT from our initial solution).

Now, the flow works smoothly for both humans and agents. Cloudflare Access has a generous free tier. And building off our newly-introduced Organizations beta, you’ll soon be able to bridge identity providers across Cloudflare accounts too.

How managed OAuth works

For a given internal app protected by Cloudflare Access, you enable managed OAuth in one click:

imageimage

Once managed OAuth is enabled, Cloudflare Access acts as the authorization server. It returns the www-authenticate header, telling unauthorized agents where to look up information on how to get an authorization token. They find this at https://<your-app-domain>/.well-known/oauth-authorization-server. Equipped with that direction, agents can just follow OAuth standards:

The agent dynamically registers itself as a client (a process known as Dynamic Client Registration — RFC 7591),

The agent sends the human through a PKCE (Proof Key for Code Exchange) authorization flow (RFC 7636)

The human authorizes access, which grants a token to the agent that it can use to make authenticated requests on behalf of the user

Here’s what the authorization flow looks like:

imageimage

If this authorization flow looks familiar, that’s because it’s what the Model Context Protocol (MCP) uses. We originally built support for this into our MCP server portals product, which proxies and controls access to many MCP servers, to allow the portal to act as the OAuth server. Now, we’re bringing this to all Access apps so agents can access not only MCP servers that require authorization, but also web pages, web apps, and REST APIs.

Mass upgrading your internal apps to be agent-ready

Upgrading the long tail of internal software to work with agents is a daunting task. In principle, in order to be agent-ready, every internal and external app would ideally have discoverable APIs, a CLI, a well-crafted MCP server, and have adopted the many emerging agent standards.

AI adoption is not something that can wait for everything to be retrofitted. Most organizations have a significant backlog of apps built over many years. And many internal “apps” work great when treated by agents as simple websites. For something like an internal wiki, all you really need is to enable Markdown for Agents, turn on managed OAuth, and agents have what they need to read protected content.

To make the basics work across the widest set of internal applications, we use Managed OAuth. By putting Access in front of your legacy internal apps, you make them agent-ready instantly. No code changes, no retrofitting. Instead, just immediate compatibility.

It’s the user’s agent. No service accounts and tokens needed

Agents need to act on behalf of users inside organizations. One of the biggest anti-patterns we’ve seen is people provisioning service accounts for their agents and MCP servers, authenticated using static credentials. These have their place in simple use cases and quick prototypes, and Cloudflare Access supports service tokens for this purpose.

But the service account approach quickly shows its limits when fine-grained access controls and audit logs are required. We believe that every action an agent performs must be easily attributable to the human who initiated it, and that an agent must only be able to perform actions that its human operator is likewise authorized to do. Service accounts and static credentials become points at which attribution is lost. Agents that launder all of their actions through a service account are susceptible to confused deputy problems and result in audit logs that appear to originate from the agent itself.

For security and accountability, agents must use security primitives capable of expressing this user–agent relationship. OAuth is the industry standard protocol for requesting and delegating access to third parties. It gives agents a way to talk to your APIs on behalf of the user, with a token scoped to the user’s identity, so that access controls correctly apply and audit logs correctly attribute actions to the end user.

Standards for the win: how agents can and should adopt RFC 9728 in their web fetch tools

RFC 9728 is the OAuth standard that makes it possible for agents to discover where and how to authenticate. It standardizes where this information lives and how it’s structured. This RFC became official in April 2025 and was quickly adopted by the Model Context Protocol (MCP), which now requires that both MCP servers and clients support it.

But outside of MCP, agents should adopt RFC 9728 for an even more essential use case: making requests to web pages that are protected behind OAuth and making requests to plain old REST APIs.

Most agents have a tool for making basic HTTP requests to web pages. This is commonly called the “web fetch” tool. It’s similar to using the fetch() API in JavaScript, often with some additional post-processing on the response. It’s what lets you paste a URL into your agent and have your agent go look up the content.

Today, most agents’ web fetch tools won’t do anything with the www-authenticate header that a URL returns. The underlying model might choose to introspect the response headers and figure this out on its own, but the tool itself does not follow www-authenticate, look up /.well-known/oauth-authorization-server, and act as the client in the OAuth flow. But it can, and we strongly believe it should! Agents already do this to act as remote MCP clients.

To demonstrate this, we’ve put up a draft pull request that adapts the web fetch tool in Opencode to show this in action. Before making a request, the adapted tool first checks whether it already has credentials ; if it does, it uses them to make the initial request. If the tool gets back a 401 or a 403 with a www-authenticate header, it asks the user for consent to be sent through the server’s OAuth flow.

Here’s how that OAuth flow works. If you give the agent a URL that is protected by OAuth and complies with RFC 9728, the agent prompts the human for consent to open the authorization flow:

imageimage

…sending the human to the login page:

imageimage

…and then to a consent dialog that prompts the human to grant access to the agent:

imageimage

Once the human grants access to the agent, the agent uses the token it has received to make an authenticated request:

imageimage

Any agent from Codex to Claude Code to Goose and beyond can implement this, and there’s nothing bespoke to Cloudflare. It’s all built using OAuth standards.

We think this flow is powerful, and that supporting RFC 9728 can help agents with more than just making basic web fetch requests. If a REST API supports RFC 9728 (and the agent does too), the agent has everything it needs to start making authenticated requests against that API. If the REST API supports RFC 9727, then the client can discover a catalog of REST API endpoints on its own, and do even more without additional documentation, agent skills, MCP servers or CLIs.

Each of these play important roles with agents — Cloudflare itself provides an MCP server for the Cloudflare API (built using Code Mode), Wrangler CLI, and Agent Skills, and a Plugin. But supporting RFC 9728 helps ensure that even when none of these are preinstalled, agents have a clear path forward. If the agent has a sandbox to execute untrusted code, it can just write and execute code that calls the API that the human has granted it access to. We’re working on supporting this for Cloudflare’s own APIs, to help your agents understand how to use Cloudflare.

Coming soon: share one identity provider (IdP) across many Cloudflare accounts

At Cloudflare our own internal apps are deployed to dozens of different Cloudflare accounts, which are all part of an Organization — a newly introduced way for administrators to manage users, configurations, and view analytics across many Cloudflare accounts. We have had the same challenge as many of our customers: each Cloudflare account has to separately configure an IdP, so Cloudflare Access uses our identity provider. It’s critical that this is consistent across an organization — you don’t want one Cloudflare account to inadvertently allow people to sign in just with a one-time PIN, rather than requiring that they authenticate via single-sign on (SSO).

To solve this, we’re currently working on making it possible to share an identity provider across Cloudflare accounts, giving organizations a way to designate a single primary IdP for use across every account in their organization.

As new Cloudflare accounts are created within an organization, administrators will be able to configure a bridge to the primary IdP with a single click, so Access applications across accounts can be protected by one identity provider. This removes the need to manually configure IdPs account by account, which is a process that doesn’t scale for organizations with many teams and individuals each operating their own accounts.

What’s next

Across companies, people in every role and business function are now using agents to build internal apps, and expect their agents to be able to access context from internal apps. We are responding to this step function growth in internal software development by making the Workers Platform and Cloudflare One work better together — so that it is easier to build and secure internal apps on Cloudflare.

Expect more to come soon, including:

More direct integration between Cloudflare Access and Cloudflare Workers, without the need to validate JWTs or remember which of many routes a particular Worker is exposed on.

wrangler dev --tunnel — an easy way to expose your local development server to others when you’re building something new, and want to share it with others before deploying

A CLI interface for Cloudflare Access and the entire Cloudflare API

More announcements to come during Agents Week 2026

Enable Managed OAuth for your internal apps behind Cloudflare Access

Managed OAuth is now available, in open beta, to all Cloudflare customers. Head over to the Cloudflare dashboard to enable it for your Access applications. You can use it for any internal app, whether it’s one built on Cloudflare Workers, or hosted elsewhere. And if you haven’t built internal apps on the Workers Platform yet — it’s the fastest way for your team to go from zero to deployed (and protected) in production.

この記事をシェア

関連記事

AWS Machine Learning Blog★42026年5月6日 00:27

Amazon ECS で Amazon Bedrock AgentCore Identity を使用して AI エージェントを保護

AWS は、Amazon ECS や EKS 上で動作する AI エージェントが外部サービスに安全にアクセスできるよう、スタンドアロン型の「Amazon Bedrock AgentCore Identity」を提供すると発表した。これにより、エージェントの認証と権限管理が強化される。

Cloudflare Blog★32026年3月16日 14:00

レガシーアーキテクチャからCloudflare Oneへ

ネットワークエンジニアが、3万人規模の組織で1000以上のレガシーアプリケーションをVPNから新アーキテクチャへ移行する際のリスクと、これがゼロトラスト導入の最大障壁であることを説明している。

Mercari Engineering★32025年12月22日 19:00

インターン生が挑戦した認証方式の移行──メルペイ加盟店管理画面へのOAuth 2.0導入

メルペイのインターン生が、加盟店管理画面の認証方式をOAuth 2.0に移行した取り組みについて、技術的挑戦と学びを共有しています。

ニュース一覧に戻る元記事を読む