Repository navigation
Conversation
The scheme pattern required a literal "://", so an RFC 8252 private-use scheme redirect URI such as com.example.app:/oauth2redirect was treated as relative and rejected when the client had no root URL. A scheme followed by ":" is already an absolute URI under RFC 3986, so match that instead of requiring an authority. Signed-off-by: Tochukwu Chikezie <95018735+Praiztl@users.noreply.github.com>
Praiztl
force-pushed
the
fix/55729-private-use-scheme-redirect-uri
branch
from
December 4, 2026 10:01
2d4c316 to
5138c81
Compare
Praiztl
marked this pull request as ready for review
December 4, 2026 11:43
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review identifies no active issues with the private-use scheme redirect URI update.
No open issues 🎉
What changed in this PR
Fixes #55729 by allowing Admin API v2 to accept RFC 8252 private-use scheme redirect URIs used by native apps.
Changes:
- Recognizes
scheme:rather than requiringscheme://. - Adds regression tests for private-use scheme URIs and nested paths.
| File | Description |
|---|---|
| rest/admin-v2/tests/src/test/java/org/keycloak/tests/admin/client/v2/validation/RedirectUriValidationTest.java | Tests private-use scheme redirect URI validation. |
| rest/admin-v2/services/src/main/java/org/keycloak/representations/admin/v2/validators/ValidRedirectUrisValidator.java | Updates and documents scheme detection. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #55729
Decisions and assumptions:
This change was made with the assistance of an AI agent.