GitHub announced that, beginning 1 February 2027, any OAuth authorization request that includes a redirect_uri containing a URL fragment (the part after “#”) will be rejected. Engineers who rely on GitHub OAuth or GitHub Apps must remove fragments from their callback URLs now to avoid broken sign‑in experiences and warning messages in the GitHub UI.
What Changed
The platform is deprecating the use of URL fragments in OAuth redirect URIs. After the enforcement date, registration of a callback URL that includes a “#” fragment will be disallowed, and existing requests that contain a fragment will be denied. The change applies to github.com for all Free, Team, and Enterprise Cloud plans; GitHub Enterprise Server is excluded.
Why It Matters for Engineers
Fragments are not part of the OAuth 2.0 specification (RFC 6749 §3.1.2.3) and can be exploited to capture an authorization code or token during the redirect step. By blocking them, GitHub removes a class of potential interception risk. For AI, cloud, DevOps, or security teams, a failed OAuth flow can cascade into CI/CD pipelines, automated deployments, or third‑party integrations that depend on GitHub authentication.
Architectural and Operational Implications
- All stored
redirect_urivalues in GitHub App or OAuth app configurations must be audited for “#” fragments. - Infrastructure‑as‑code templates, secret‑management entries, and documentation that reference callback URLs need updates.
- Automated tests that simulate the OAuth handshake should be extended to assert that the final URL contains no fragment.
- During the transition period, GitHub will surface a warning in the app settings and display a caution to end users; ignoring the warning will lead to authentication failures after the cut‑over.
Related CloudNinjas coverage: security.
What This Means For Practitioners
Identify every GitHub OAuth or GitHub App registration in your environment, strip any fragment from the callback URL, and redeploy the updated configuration before 1 February 2027. Add a validation step to your CI pipeline to reject redirect_uri values that contain “#”. Monitor the GitHub app settings UI for lingering warnings and verify that end‑user sign‑in flows complete without interruption.
