Skip to content

fix(keycloak): use wildcard redirect URI for /oauth/ callbacks - #1377

Merged
tofarr merged 1 commit into
mainfrom
fix/keycloak-oauth-redirect-uri-wildcard
Oct 9, 2026
Merged

tofarr merged 1 commit into
mainfrom
fix/keycloak-oauth-redirect-uri-wildcard

Conversation

@tofarr

@tofarr tofarr commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Replace the three explicit /oauth/keycloak/callback, /oauth/keycloak/offline/callback, and /oauth/device/keycloak-callback redirect URIs on the allhands client with a single https://$WEB_HOST/oauth/* entry.

This also covers the new /oauth/{n}/callback pattern, where {n} is an unbounded database primary key and can't be enumerated as exact redirect URIs. Keycloak only supports a single trailing wildcard, so a prefix match anchored on the full host plus the required /oauth/ literal is the narrowest pattern that still covers this.

Description

Helm Chart Checklist

  • I have tested the chart upgrade path from the previous version
  • I have verified backwards compatibility with existing values.yaml configurations
  • I have updated the chart's README.md if there are any breaking changes or new required values

Additional Notes

Replace the three explicit /oauth/keycloak/callback,
/oauth/keycloak/offline/callback, and /oauth/device/keycloak-callback
redirect URIs on the allhands client with a single
https://$WEB_HOST/oauth/* entry.

This also covers the new /oauth/{n}/callback pattern, where {n} is an
unbounded database primary key and can't be enumerated as exact
redirect URIs. Keycloak only supports a single trailing wildcard, so a
prefix match anchored on the full host plus the required /oauth/
literal is the narrowest pattern that still covers this.

Co-authored-by: openhands <openhands@all-hands.dev>

@hieptl hieptl 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.

Thank you! 🙏

@tofarr
tofarr merged commit 8e4d0b1 into main Oct 9, 2026
29 checks passed
@tofarr
tofarr deleted the fix/keycloak-oauth-redirect-uri-wildcard branch October 9, 2026 12:05
@openhands-release-bot openhands-release-bot Bot added the released: openhands/0.80.0 Shipped in openhands/0.80.0 label Oct 9, 2026
@openhands-release-bot

Copy link
Copy Markdown
Contributor

🚀 Released in openhands/0.80.0.

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

Labels

released: openhands/0.80.0 Shipped in openhands/0.80.0 type: fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants