
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 carries a # fragment, and block registering such URIs. App developers should fix their callback URLs now to avoid login failures.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (github.blog) でご確認ください。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 (github.blog).
GitHubは2027年2月1日以降、URLフラグメントを含むリダイレクトURIを使ったOAuth認可リクエストを拒否します。コールバックURLにフラグメントを含めているアプリは、認証の中断を避けるため、今のうちに修正することが求められています。
拒否が始まる日
対象となるのは、リダイレクトURIに「#」で始まるフラグメントが含まれるOAuth認可リクエストです。2027年2月1日以降、こうしたリクエストはGitHub側で拒否されます。
あわせて、フラグメントを含むリダイレクトURIの登録もできなくなります。つまり、新たに登録することも、既存のものを使い続けることもできなくなる、という整理です。
フラグメントの問題点
GitHubは、フラグメント付きのリダイレクトURIがOAuth 2.0の仕様に含まれないと説明しています。具体的にはRFC 6749の3.1.2.3節への準拠に関わる点です。
さらにセキュリティ上のリスクがあるとされています。リダイレクトの途中でフラグメントが悪用され、認可コードやトークンが傍受されるおそれがあるためです。今回の非推奨化は、仕様への準拠と、こうしたリスクの回避を理由としています。
影響を受けるアプリ
影響を受けるのは、GitHub AppまたはOAuth Appに「#」付きのフラグメントを含むコールバックURLを登録している場合です。該当する開発者は、コールバックURLからフラグメントを取り除く必要があります。
移行までの警告表示
強制適用までの期間中、該当アプリの設定画面には警告が表示されます。そのアプリ経由でサインインするユーザーにも、注意を促すメッセージが表示されるとのことです。
期限を過ぎるとフラグメント付きのURIでは認可リクエストが通らなくなるため、ログインできなくなる事態を避けるには、期限前にコールバックURLを見直しておくことが重要です。
Fragments in redirect URIs
GitHub is deprecating the use of URL fragments in redirect URIs for OAuth apps and GitHub Apps. The change matters for any developer whose sign-in flow depends on a callback URL, because authorization requests that rely on a fragment will stop working once enforcement begins.
Enforcement from February 1, 2027
According to the announcement, starting February 1, 2027, GitHub will reject OAuth authorization requests that use a redirect URI containing a URL fragment. After enforcement, developers will no longer be able to register or use a redirect URI that includes a fragment. The guidance is to remove any fragment from the callback URL now to avoid disruption.
Whether an app is affected is straightforward to determine. If a GitHub App or OAuth app registers a callback URL containing a # fragment, it falls under these changes.
Why fragments are a problem
The announcement gives two reasons for the move. First, redirect URIs with fragments are not part of the OAuth 2.0 specification; it points to RFC 6749 section 3.1.2.3 in connection with compliance. Second, it describes a security risk: a fragment can be used to intercept an authorization code or token during a redirect.
Warnings in the meantime
Until enforcement takes effect, there are visible signals. Developers will see a warning in their app's settings. Users who sign in through an affected app will see a caution message during the process.
In short, the practical step for app owners is to review the registered callback URL, remove any # fragment, and do so before February 1, 2027, so that authorization requests continue to be accepted and users are not blocked from signing in.
ポコと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が拒否されるんだね。これって大きいこと?From February 1, 2027, redirect URIs with a # get rejected, right? Is that a big deal?
- TECHガイドTECH Guide該当するコールバックURLを持つアプリは、その日以降OAuth認可リクエストが拒否されるよ。登録もできなくなるから、今のうちに#部分を外す必要があるんだ。For apps with such callback URLs, yes. After that date their OAuth authorization requests get rejected and registration is blocked, so the fragment needs to come out beforehand.
- ポコPokoフラグメントって、そもそも何?なんで危ないの?What's a fragment, anyway? And why is it risky?
- TECHガイドTECH Guide一般には、URLの#から後ろの部分のことだよ。この記事では、リダイレクト中に認可コードやトークンを横取りされる恐れがあり、OAuth 2.0の仕様にも沿っていないと書かれているよ。Generally, it's the part of a URL after the #. This article says it could let someone intercept an authorization code or token during a redirect, and it isn't part of the OAuth 2.0 spec.
- ポコPokoもし自分がアプリを作っていたら、まず設定画面を見ればいいのかな?If I had an app, would I start by checking its settings page?
- TECHガイドTECH Guideいい考えだね。それまでの間、アプリの設定に警告が出て、サインインするユーザーにも注意メッセージが表示されるとあるよ。期限は2027年2月1日だから、早めに直そう。Good idea. Until then, a warning shows in your app's settings, and users signing in see a caution message. The deadline is February 1, 2027, so fixing it early is 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



