Deprecating redirect URI fragments for OAuth and GitHub Apps
Starting February 1, 2027, GitHub will reject OAuth authorization requests that use a redirect URI containing a URL fragment. If your app’s callback URL includes a fragment, remove it now to avoid disruption.
Redirect URIs with fragments aren’t part of the OAuth 2.0 specification (RFC 6749 section 3.1.2.3 compliance) and introduce a security risk, since a fragment can be used to intercept an authorization code or token during a redirect. If your GitHub App or OAuth app registers a callback URL containing a # fragment, you’re affected by these changes.
After the enforcement of the deprecation, developers will no longer be able to register or use a redirect URI that contains a URL fragment. In the meantime, you’ll see a warning in your app’s settings, and users signing in through your app will see a caution message.
These changes apply to github.com across the Free, Team, and Enterprise Cloud plans and are not applicable to GitHub Enterprise Server.
Learn more about user authorization callback URLs in GitHub Apps and OAuth apps.