Skip to content

OAuth 2.0 Protected Resource Metadata to the OIDC plugin#5695

Open
Pantus Oleh (zibet27) wants to merge 1 commit into
zibet27/oidc-session-routesfrom
zibet27/protected-resource-metadata
Open

OAuth 2.0 Protected Resource Metadata to the OIDC plugin#5695
Pantus Oleh (zibet27) wants to merge 1 commit into
zibet27/oidc-session-routesfrom
zibet27/protected-resource-metadata

Conversation

@zibet27

@zibet27 Pantus Oleh (zibet27) commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Subsystem
Server OIDC

Motivation
KTOR-5001 Add OpenID Connect (OIDC) support on client and server

Solution

  • New protectedResource(resource) { } DSL
  • Serves metadata at /.well-known/oauth-protected-resource{path} derived from the resource identifier URL
  • Auto-derives authorization_servers, scopes_supported, and bearer_methods_supported from configured providers unless explicitly overridden
  • Bearer authentication failures include a resource_metadata parameter in WWW-Authenticate when protected resource metadata is enabled

This should be the last PR for the OIDC plugin

@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (2)
  • main
  • release/*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2f8ea2d4-7083-46b7-aa03-ddd4665d18d2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch zibet27/protected-resource-metadata

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

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant