
OAuthアプリとGitHub Appsにおけるリダイレクト URIのフラグメント利用を非推奨化Deprecating redirect URI fragments for OAuth and GitHub Apps
GitHubは2027年2月1日以降、#付きのフラグメントを含むリダイレクトURIでのOAuth認可リクエストを拒否し、登録も不可にする。該当する開発者は早めにコールバックURLを修正すべきである。
From February 1, 2027, GitHub will refuse OAuth authorization requests whose redirect URI has a # fragment, citing RFC 6749 and interception risk. Affected app owners should fix callback URLs now.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (blog.github.com) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (blog.github.com).
2027年2月1日から拒否
GitHubは2027年2月1日以降、URLフラグメントを含むリダイレクトURIを使ったOAuth認可リクエストを拒否する。対象はOAuthアプリとGitHub Appsで、コールバックURLに「#」付きのフラグメントを登録している場合は影響を受ける。混乱を避けるため、今のうちに該当部分を削除するよう案内されている。
非推奨とされる理由
フラグメントを含むリダイレクトURIは、OAuth 2.0の仕様であるRFC 6749のセクション3.1.2.3に準拠しないとされる。加えて、リダイレクトの際にフラグメントを利用して認可コードやトークンが傍受されるおそれがあり、セキュリティ上のリスクになると説明されている。
実施後に変わること
非推奨化が実施されると、フラグメントを含むリダイレクトURIは登録も利用もできなくなる。つまり、新たに登録できないだけでなく、すでに登録済みのものを認可リクエストで使うこともできなくなる。
移行期間中の表示
実施までの期間中は、アプリの設定画面に警告が表示される。また、そのアプリ経由でサインインするユーザーには注意メッセージが表示される。
対応としては、アプリに登録しているコールバックURLを確認し、「#」以降のフラグメントを取り除くことになる。期限は2027年2月1日とされており、それまでに修正を済ませておく必要がある。
Fragments in Redirect URIs
GitHub is deprecating the use of URL fragments in redirect URIs for OAuth apps and GitHub Apps. Starting February 1, 2027, GitHub will reject OAuth authorization requests that use a redirect URI containing a fragment, so any app relying on such a callback URL will need to change it.
Who Is Affected
According to the announcement, you are affected if your GitHub App or OAuth app registers a callback URL containing a # fragment. The guidance is to remove the fragment now to avoid disruption, rather than waiting for enforcement to begin.
Why GitHub Is Making the Change
The announcement gives two reasons. First, redirect URIs with fragments are not part of the OAuth 2.0 specification, and it points to RFC 6749 section 3.1.2.3 compliance. Second, it describes them as a security risk, because a fragment can be used to intercept an authorization code or token during a redirect.
Warnings and Enforcement
Until enforcement takes effect, the announcement says developers will see a warning in their app's settings. Users who sign in through an affected app will see a caution message.
Once the deprecation is enforced, developers will no longer be able to register or use a redirect URI that contains a URL fragment. In practice, that means two things on and after the February 1, 2027 date: authorization requests with fragment-bearing redirect URIs will be refused, and new registrations of such callback URLs will not be possible.
For app owners, the action described is straightforward: check the callback URL registered for your GitHub App or OAuth app, and if it includes a # fragment, remove it before the enforcement date.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko2027年2月1日から、#付きのリダイレクトURIが拒否されるんだね。これって、けっこう大きい変更なの?So from February 1, 2027, redirect URIs with a # get rejected? Is that a big change?
- TECHガイドTECH Guide対象は、コールバックURLに#のフラグメントを含むOAuthアプリやGitHub Appsです。その日以降は登録も利用もできなくなるので、早めの修正を促しています。It affects OAuth apps and GitHub Apps whose callback URL includes a # fragment. After that date, they can't register or use one, so the advice is to fix it early.
- ポコPokoフラグメントって、#のうしろの部分のこと?どうして危ないの?Is the fragment just the part after the #? Why is it risky?
- TECHガイドTECH Guideそうだよ、URLの#から後ろの部分。この記事では、リダイレクト中に認可コードやトークンを横取りされるおそれがあり、RFC 6749の仕様にも沿わないとされているよ。Right, it's the part of the URL after the #. The post says an authorization code or token could be intercepted during the redirect, and that it isn't part of the OAuth spec, RFC 6749.
- ポコPokoもし自分のアプリのコールバックURLに#が入っていたら、どうやって気づくのかな?If my app's callback URL had a # in it, how would I even notice?
- TECHガイドTECH Guide移行期間中は、アプリの設定画面に警告が出て、サインインするユーザーにも注意メッセージが表示されるそうだよ。期限前でも、今のうちにフラグメントを外しておくのがよさそうだね。Until then, you'd see a warning in your app's settings, and users signing in would see a caution message. Removing the fragment now, well before the deadline, sounds wise.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy



