
Image: GitHub
Why it mattersAny OAuth or GitHub App that uses a hash in its callback URL will stop signing users in that day. Owners remove the fragment and redeploy.
GitHub will reject OAuth callback URLs with a fragment on 1 February 2027. Any OAuth App or GitHub App whose redirect URI contains a hash will stop signing users in on that day.
On 30 November 2026, GitHub said in its changelog that the deprecation starts on 1 February 2027. The reason is spec compliance. RFC 6749 section 3.1.2.3 of the OAuth 2.0 specification does not allow a fragment in a redirect URI. GitHub is bringing its behaviour in line with the spec.
What a fragment is, and what breaks
A URL fragment is the part after a #. In https://example.com/callback#state, the #state part is the fragment. A browser reads it but the server never receives it. GitHub Apps and OAuth Apps today let a developer register a callback URL that includes one. From 1 February 2027, GitHub will refuse the authorization request if the registered URL has a # in it.
The failure mode is that a user cannot sign in through the app. The browser goes to GitHub's authorization page, GitHub refuses, and the user never reaches the callback. An app owner sees sign-ins drop to zero. The deprecation note is the only signal on the GitHub side.
What the warning phase shows, before 1 February 2027
GitHub lists two signals during the transition. A user signing in through an app with a fragmented callback sees a caution message on GitHub's authorization screen. The app owner sees the same warning inside the app settings page on github.com. Both signals name the fragment, so an owner reading them can act before the enforcement date.
What to do this week
Open the GitHub App and OAuth App pages under your developer settings. Each app has a Callback URL or Authorization callback URL field. Read each one and check for a #. If any URL has one, remove the fragment and save the setting. Redeploy any app code that builds the redirect URI with a hash in it. Sign in through the app once to confirm the caution banner is gone.
A client-side router can put a fragment into a redirect URL without the app code setting one explicitly. Hash-based routing is the most common cause. An app that uses the hash for state (for example #state=abc) needs a different carrier for that state. GitHub itself already returns state in a query parameter. A static landing page may render a hash for UI reasons alone. That page can drop the hash from the registered callback. The page keeps rendering the UI hash after the redirect.
Scope
GitHub names the plans in scope. The change applies to github.com across Free, Team and Enterprise Cloud plans. GitHub Enterprise Server is out of scope. A self-hosted enterprise keeps the older behaviour until GitHub rolls the change there separately. Teams that register callbacks against both github.com and an on-premises instance still have to act on the github.com side.
The whole change is a single-line fix for most apps and a small routing rewrite for a few. The hard part is the discovery. A team that owns a long list of apps needs to read each one this week. The week of 25 January 2027 is too late.
Source
Primary: GitHub Changelog, Deprecating redirect URI fragments for OAuth and GitHub Apps.
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.


