Newshot

弃用 OAuth 和 GitHub Apps 的重定向 URI 片段

AI summary

从 2027 年 2 月 1 日起,GitHub 将拒绝重定向 URI 含 URL 片段的 OAuth 授权请求。若你的应用回调 URL 含片段,请立即移除以免服务中断。含片段的重定向 URI 不符合 OAuth 2.0 规范(RFC 6749 第 3.1.2.3 节),且存在安全风险,因为片段可用于在重定向过程中拦截授权码或令牌。

Translation(model translation, not the source's own text)

为 OAuth 和 GitHub Apps 弃用重定向 URI 片段

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

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

在弃用措施强制执行后,开发者将无法再注册或使用包含 URL 片段的重定向 URI。在此期间,你会在应用设置中看到警告,通过你的应用登录的用户也会看到警告消息。

当应用使用包含 URL 片段的重定向 URI 时,开发者在应用设置中看到的警告提示
当应用使用包含 URL 片段的重定向 URI 时,开发者在应用设置中看到的警告提示

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

进一步了解 GitHub Apps 和 OAuth 应用中的用户授权回调 URL。

Only about 618 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by GitHub Changelog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗