# and what follows it. The rule covers both GitHub Apps and OAuth apps on GitHub Free, Team, and Enterprise Cloud. It does not apply to GitHub Enterprise Server. Once enforcement begins, developers will also be unable to register callback URLs that contain fragments.
GitHub says affected apps will show a warning in their settings before enforcement, and users signing in through those apps will see a caution message. The fix belongs to the app maintainer: check both the callback saved in GitHub and the redirect_uri the application sends. Changing one does not update the other.
The callback you don’t send still counts
A callback URL is where GitHub sends the browser after the user authorizes the app. For example, in [url]https://example.com/callback#section[/url], the fragment is #section; the fragment-free callback is [url]https://example.com/callback[/url]. For GitHub Apps, this is the user authorization callback URL, not the separate setup URL used after installation.
Here’s the easy-to-miss part: GitHub’s documentation says that when redirect_uri is omitted, GitHub uses the first configured callback URL for either app type. So finding no redirect_uri in your application code doesn’t clear the integration. And if you have several callbacks, a successful test of the default tells you nothing about the others your app explicitly selects.
What to change before February 1
- Review every registered authorization callback. Check each app registration your team uses on GitHub.com, including separate staging and production registrations where you have them. Remove the fragment from every affected callback, not just the first one.
- Update the values the app actually sends. Check the code and deployment configuration that build the authorization request. If your app also supplies
redirect_uriwhen exchanging the code for a token, keep that value consistent with the one used during authorization. GitHub documents that it can compare the two. - Test the full sign-in flow. Exercise the default callback and any explicitly selected callbacks your app uses. Confirm the browser reaches the intended endpoint, the app validates the returned OAuth
state, and the code exchange completes. If a fragment used to send users to a particular screen, have the app handle that navigation after it completes the callback rather than embedding the destination in GitHub’s redirect URI.
Why GitHub is drawing the line at #
The OAuth 2.0 specification, RFC 6749, allows a query component in the callback URI but explicitly rules out a fragment. That distinction matters: GitHub’s OAuth web flow returns the temporary authorization code as a code query parameter and echoes state when the app supplies it. Removing a fragment from the callback does not mean stripping those response parameters or dropping state validation.
GitHub says fragment-bearing redirects can put authorization codes or tokens at risk of interception. The changelog does not report a specific compromise or document the exact rejection response. For maintainers, the useful test is simpler than waiting to see an error: verify that every sign-in path your app uses can complete with a fragment-free callback before enforcement begins.
References
- Deprecating redirect URI fragments for OAuth and GitHub Apps GitHub Changelog · 2026-11-30T23:04:03+00:00
- About the user authorization callback URL - GitHub Enterprise Cloud Docs docs.github.com
- Authorizing OAuth apps - GitHub Enterprise Cloud Docs docs.github.com