跳到主内容
@wquguru
精选88GitHub Changelog云与平台

GitHub OAuth弃用重定向URI片段,2027年2月1日起强制生效

Deprecating redirect URI fragments for OAuth and GitHub Apps

原文
发到 X
推荐理由

所有依赖GitHub OAuth集成的开发者必须注意:2027年2月1日起含片段的重定向URI将被拒。请立即检查并移除App设置中的#片段,避免认证流程突然中断。

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.

自 2027 年 2 月 1 日起,GitHub 将拒绝使用包含 URL 片段(fragment)的重定向 URI 的 OAuth 授权请求。如果您的应用回调 URL 包含片段,请立即移除,以避免服务中断。

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.

带有片段的重定向 URI 不符合 OAuth 2.0 规范(RFC 6749 第 3.1.2.3 节合规性),并会引入安全风险,因为攻击者可以利用片段在重定向过程中拦截授权码或令牌。如果您的 GitHub App 或 OAuth 应用注册的回调 URL 中包含 # 片段,您将受到这些变更的影响。

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.

在弃用政策生效后,开发者将无法注册或使用包含 URL 片段的重定向 URI。在此期间,您将在应用设置中看到警告信息,通过您的应用登录的用户也会看到警告提示。

These changes apply to github.com across the Free, Team, and Enterprise Cloud plans and are not applicable to GitHub Enterprise Server.

这些变更适用于 Free、Team 和 Enterprise Cloud 计划下的 github.com,不适用于 GitHub Enterprise Server。

Learn more about user authorization callback URLs in GitHub Apps and OAuth apps.

了解更多关于 GitHub Apps 和 OAuth 应用中用户授权回调 URL 的信息。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件