GitHub to reject OAuth redirect URIs with fragments starting Feb. 1, 2027
In brief
Starting Feb. 1, 2027, GitHub will reject OAuth authorization requests that use redirect URIs containing a URL fragment (#).
1 min read
Translated from the Korean original. Read the original in Korean
Why it matters
- GitHub Apps and OAuth apps that use such callback URLs will have their sign-in integration blocked unless they fix the addresses before the effective date.
Key details
GitHub posted a deprecation notice in its changelog on Nov. 30 (U.S. time). The change affects GitHub Apps and OAuth apps that have registered a '#' fragment in their callback URLs. After the change takes effect, such redirect URIs cannot be registered or used. Until then, a warning will appear on the app settings screen, and users who sign in through those apps will also see a caution message.
Context
GitHub said redirect URIs containing fragments do not comply with the OAuth 2.0 specification (RFC 6749, Section 3.1.2.3). It said fragments could be used to intercept authorization codes or tokens during the redirect, creating a security risk. The change applies to the Free, Team and Enterprise Cloud plans on github.com and does not apply to GitHub Enterprise Server.
What's next
- Work to remove fragments from callback URLs, following the app settings warnings, before the Feb. 1, 2027, effective date