Skip to content

fix(oauth2): do not render client redirect_uri as a link on the consent page - #167

Open
romanetar wants to merge 1 commit into
mainfrom
fix/consent-no-redirect-uri-link
Open

romanetar wants to merge 1 commit into
mainfrom
fix/consent-no-redirect-uri-link

Conversation

@romanetar

@romanetar romanetar commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

ref: https://app.clickup.com/t/86bcd4ahx

Problem

The consent page rendered the app name and a tooltip entry as anchors with href = the client's redirect_uri. For native clients (custom URI scheme, e.g. com.fntech.ftnattendee://callback) tapping either link navigated to the callback without a code and killed the login.

Changes

  • App title links to the client website (new tab, rel=noopener noreferrer) only when it is http(s); otherwise plain text.
  • Tooltip shows redirectURL as plain text.
  • website exposed in consent.blade.php config via @json (owner-controlled value, avoids JS injection).
  • New consent_components.js with unit tests (Jest, renderToStaticMarkup).
  • No scheme special-casing; Accept/Cancel flow untouched.

Notes

  • Other {!! !!} interpolations in consent.blade.php are unchanged (out of scope, tech debt).
  • Out of scope: redirect_uri validation, login page, passwordless flow.

Testing

  • Jest: 12/12 passing.
  • Manual consent flow with native and web clients still to be done (asset build was blocked by root-owned files in public/assets).

…nt page

For native clients registered with a custom URI scheme, tapping the app
title or the tooltip link navigated the auth browser to the callback
without an authorization code and killed the login.

The app title now links to the client website (http/https only, new tab)
when configured, otherwise it is plain text. The redirect URL is shown as
plain text in the tooltip. website is exposed to the view config via @JSON.
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2cb196e1-8930-454f-9847-aebb64176ce2
  • Autopilot · 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

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

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

📘 OpenAPI / Swagger preview

➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-167/

This page is automatically updated on each push to this PR.

@romanetar
romanetar requested a review from smarcet October 5, 2026 17:58

This branch has not been deployed

No deployments
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