Skip to content

refactor(auth): a page's malformed query is rejected through OAuthError::malformed - #682

Draft
PiquelChips wants to merge 1 commit into
mainfrom
refactor/544-boundary-page-query
Draft

PiquelChips wants to merge 1 commit into
mainfrom
refactor/544-boundary-page-query

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Part of #544

WebApplication::query wrote out the invalid_request rejection that #642's OAuthError::malformed already builds: the same code, the description the request is malformed: <error>, and the error as its source. It now calls the helper.

WebApplication::form keeps its own rejection: its description quotes Topcoat's error while its source wraps it in UnreadableForm, so the helper, which takes one error for both, would change what it logs.

Unchanged

malformed("the request", error) builds OAuthCode::InvalidRequest.reject_with(format!("the request is malformed: {error}"), error), the expression it replaces. No test changed.

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)

@PiquelChips PiquelChips added apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI refactor No behviour changes labels Nov 22, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI refactor No behviour changes

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant