跳至主要內容
返回技術博客

· 2 min read · ·

OAuth callback migration: verify the whole sign-in journey

GitHub’s February 2027 redirect URI change calls for configuration inventory, destination handling, and end-to-end sign-in checks.

  • OAuth
  • Migration
  • Delivery
On this page
  1. Inventory the URL actually sent
  2. Separate the callback from the destination
  3. Test complete journeys
  4. Turn the deadline into delivery dates
  5. Sources

On November 30, 2026, GitHub announced that OAuth authorization requests using redirect URIs with URL fragments will be rejected from February 1, 2027. The change applies to github.com, not GitHub Enterprise Server. This is migration guidance, not a report of changes already made to a project.

Inventory the URL actually sent

Do more than search a repository for callback. List application settings for production, testing, and local development, then compare them with the redirect URI in the actual authorization request. Environment variables, deployment settings, and code defaults can each hold a different value.

Consider the hypothetical URL https://example.com/auth/callback#dashboard. The fragment to investigate is #dashboard. Avoid a repository-wide replacement: ordinary page anchors and OAuth callbacks serve different purposes. Establish what a value does before changing it.

Separate the callback from the destination

A callback endpoint continues authorization; the screen someone wants to return to after sign-in is a separate application decision. After removing a fragment, trace any navigation logic that depended on it. An empty fragment field does not establish that sign-in still works.

If destination storage must change, use the project’s existing reviewed authentication mechanism. Check allowed internal destinations and expiry handling. Do not improvise arbitrary external redirects or move authorization codes and tokens into navigation parameters. Verify implementation details against the authentication library in use.

Test complete journeys

Create a matrix for sign-in from the homepage, entry through a protected page, cancelled authorization, and sign-in after session expiry. Record the starting point, expected outcome, observed result, and deployment version. Test existing accounts and new authorization relationships separately so a retained browser session does not hide a failure.

Useful evidence includes status codes, sanitized paths, and error categories. Avoid copying full URLs containing authorization codes, tokens, or personal information into tickets or analytics. Reviewers need enough evidence to understand a result, not every byte of the request.

Turn the deadline into delivery dates

Assign owners and dates for inventory, testing, and production cutover. Keep a recovery path to a known working version, but check whether that version still meets upstream rules when recovery is needed. My recommendation is to treat this as a small delivery project whose completion means someone can finish the sign-in journey—not merely that a URL was edited.

Sources

Official announcement

Related reading

Markdown · PDF

SUBSCRIBE

新文章寄到你的信箱

每月約 2–4 篇,主題是 AI 導入、Web 工程與維運。只在有新文章時寄出,隨時可以退訂。

送出後會收到一封確認信,點擊確認才會開始寄送。確認信可能被歸到垃圾郵件,請留意一下。

用 RSS 訂閱

習慣用 Feedly、Inoreader 或其他閱讀器?加入這個網址即可。

https://www.8plus.app/feed.xml
開啟 RSS

想把文章裡的想法落地?

預約一場諮詢,讓我們針對你的系統與流程一起討論可行的做法。