GitHub will reject OAuth redirect URIs with a # fragment
From 1 February 2027, GitHub rejects OAuth and GitHub App authorization requests whose registered callback URL contains a URL fragment. Warnings show now.
GitHub is deprecating OAuth and GitHub App callback URLs that contain a # fragment. From 1 February 2027, authorization requests using a redirect URI with a fragment will be rejected outright.
Fragment-based redirect URIs aren’t valid under RFC 6749 section 3.1.2.3, and GitHub says they’re a security risk: a fragment can be used to intercept an authorization code or token during the redirect. Until the enforcement date, affected apps see a warning in their settings, and users signing in through them see a caution message. The change applies to github.com on Free, Team and Enterprise Cloud plans, covering both OAuth Apps and GitHub Apps. GitHub Enterprise Server is not affected.
GitHub’s advice is blunt: “If your app’s callback URL includes a fragment, remove it now to avoid disruption.” There’s no detail beyond that in the changelog post itself, just a pointer to the OAuth Apps and GitHub Apps callback URL docs.
Why it matters: if you registered a callback URL with a # anywhere in it, your sign-in flow keeps working today but starts failing outright on 1 February 2027. Check your app’s registered redirect URIs now rather than waiting for the warning banner to turn into an outage.