Skip to content

Add POST /oauth/register handler for dynamic client registration - #3428

Merged
jhrozek merged 2 commits into
mainfrom
auth-proxy-pr-10-4-handlers-dcr
Jan 27, 2026
Merged

jhrozek merged 2 commits into
mainfrom
auth-proxy-pr-10-4-handlers-dcr

Conversation

@jhrozek

@jhrozek jhrozek commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Implement the registration endpoint already advertised in the OAuth discovery metadata. The handler validates requests via the registration package's allowlists, creates a public LoopbackClient, and persists it through the storage.ClientRegistry interface.

@jhrozek
jhrozek requested a review from tgrunnagle January 23, 2026 18:45
@github-actions github-actions Bot added the size/S Small PR: 100-299 lines changed label Jan 23, 2026
@codecov

codecov Bot commented Jan 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.62687% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.92%. Comparing base (53d6023) to head (c6d7e32).
⚠️ Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
pkg/authserver/server/handlers/dcr.go 74.24% 13 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3428      +/-   ##
==========================================
- Coverage   64.94%   64.92%   -0.03%     
==========================================
  Files         391      392       +1     
  Lines       38197    38359     +162     
==========================================
+ Hits        24808    24903      +95     
- Misses      11455    11509      +54     
- Partials     1934     1947      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread pkg/authserver/server/handlers/dcr.go
Comment thread pkg/authserver/server/handlers/dcr_test.go
yrobla
yrobla previously approved these changes Jan 26, 2026

@yrobla yrobla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved with some comments

jhrozek and others added 2 commits January 26, 2026 11:16
Implement the registration endpoint already advertised in the OAuth
discovery metadata. The handler validates requests via the registration
package's allowlists, creates a public LoopbackClient, and persists it
through the storage.ClientRegistry interface.
- Validate Content-Type header per RFC 7591 (must be application/json)
- Add test case for oversized request body (64KB limit)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tgrunnagle
tgrunnagle previously approved these changes Jan 26, 2026
@jhrozek
jhrozek dismissed stale reviews from tgrunnagle and yrobla via c6d7e32 January 26, 2026 21:31
@jhrozek
jhrozek force-pushed the auth-proxy-pr-10-4-handlers-dcr branch from 6f1f81f to c6d7e32 Compare January 26, 2026 21:31
@jhrozek

jhrozek commented Jan 26, 2026

Copy link
Copy Markdown
Contributor Author

@yrobla sorry for the delay in addressing the comments, I wrote the patches, replied to you but forgot to push the new code.

@github-actions github-actions Bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Jan 26, 2026
@jhrozek
jhrozek merged commit aa9df8c into main Jan 27, 2026
35 checks passed
@jhrozek
jhrozek deleted the auth-proxy-pr-10-4-handlers-dcr branch January 27, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants