Samuel Arendt

GitHub will reject OAuth callback URLs with a fragment (#) starting February 1, 2027

GitHub announced on November 30, 2026 that, starting February 1, 2027, it will reject OAuth authorization requests whose return URL (the redirect_uri, also called the callback URL) contains a fragment, meaning the part after #. After that date, you also won't be able to register a callback URL with a fragment on a GitHub App or OAuth app.

Why GitHub is changing the rule

The OAuth 2.0 specification (RFC 6749, section 3.1.2) says the redirection endpoint must not include a fragment. GitHub accepted that format anyway and is now aligning with the spec. In the announcement, GitHub points to a security risk: according to the changelog, a fragment can be used to intercept the authorization code or token during the redirect.

Until the cutoff, GitHub shows a warning in the settings of affected apps, and people who sign in through those apps see a caution message on the authorization screen.

Who needs to check

The change applies to github.com on the Free, Team and Enterprise Cloud plans. GitHub Enterprise Server is not affected.

Any GitHub App or OAuth app whose callback URL contains # is in scope. That includes a "Sign in with GitHub" button on your own product, internal integrations that ask users for authorization, and tools your company publishes for others.

Given how fragments usually show up in URLs, the most likely case is a single-page application with hash-based routing, where frontend routes live after the # (for example, a callback ending in /#/auth/callback). This is an inference from the URL format, not an example GitHub gives. If you use an authentication library or an intermediate identity provider, check which URL it registers with GitHub, because that is the URL GitHub will validate.

What to do before February 1

  1. Open the settings of every GitHub App and OAuth app in the organization and look for the new warning or a # in the callback URLs.
  2. Replace the URL with a route that has no fragment, such as /auth/callback, that the server or frontend can serve directly. In a hash-routed application, this may require a real server route that receives the code and then redirects into the app.
  3. Update the same URL in the code that builds the authorization request, since the redirect_uri you send has to match the registered one.
  4. Test the full sign-in flow in a staging environment before changing the production app.

If none of your callback URLs contain #, there is nothing to do for now.

What the announcement doesn't say

The changelog doesn't mention a brownout period with temporary blocks before the date. It also doesn't say what happens to tokens already issued to affected apps. The text talks about rejecting new authorization requests, so the expected impact is on the user's next sign-in or authorization, but the announcement doesn't state that. If you depend on that behavior, keep an eye on GitHub's callback URL documentation until February.

If your company is weighing something similar or needs support on this topic, reach me on LinkedIn or WhatsApp.

References

#Operations, #Radar, #Software Quality