Skip to content

session: Drop GET support for the OAuth endpoints#13833

Open
Turbo87 wants to merge 2 commits into
rust-lang:mainfrom
Turbo87:session-drop-get
Open

session: Drop GET support for the OAuth endpoints#13833
Turbo87 wants to merge 2 commits into
rust-lang:mainfrom
Turbo87:session-drop-get

Conversation

@Turbo87
Copy link
Copy Markdown
Member

@Turbo87 Turbo87 commented Jun 2, 2026

Follow-up to #13829, which added POST variants of the GitHub OAuth session endpoints and kept the existing GET routes as deprecated, backward-compatible shims. This removes those GET shims, leaving POST as the only method on both /api/private/session/begin and /api/private/session/authorize. Each commit drops one endpoint's shim along with its tests, and regenerates the OpenAPI snapshot and the API-client schema.

This must not be deployed until #13829 has been live in production long enough that no client still issues GET requests to these endpoints. The GET shims only exist to cover stale, browser-cached copies of the frontend. Dropping them before those copies have cycled out would break login for the affected users until they reload. The PR stays in draft until then.

Related

@rustbot

This comment has been minimized.

@Turbo87 Turbo87 force-pushed the session-drop-get branch 2 times, most recently from 4dcc4e1 to ee88ae8 Compare June 2, 2026 21:26
@Turbo87 Turbo87 marked this pull request as ready for review June 5, 2026 07:59
@Turbo87 Turbo87 force-pushed the session-drop-get branch from ee88ae8 to 65bc075 Compare June 5, 2026 07:59
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 5, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Turbo87 added 2 commits June 5, 2026 10:00
No live client issues `GET` requests against this endpoint anymore, so the
deprecated variant is removed, leaving `POST` as the only method.
No live client issues `GET` requests against this endpoint anymore, so the
deprecated variant and its query-string parameter struct are removed,
leaving `POST` with its JSON body as the only method.
@Turbo87 Turbo87 force-pushed the session-drop-get branch from 65bc075 to 1a57a64 Compare June 5, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants