Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Don't show redirect_uri on consent screen if not HTTP #1736

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/pages/consent.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{% endif %}

<h1 class="cpd-text-primary cpd-text-heading-xl-semibold"><a target="_blank" href="{{ client.client_uri }}">{{ client_name }}</a></h1>
<p class="cpd-text-secondary cpd-text-body-lg-regular"><span class="whitespace-nowrap">at {{ grant.redirect_uri | simplify_url }}</span> wants to access your account. This will allow <span class="whitespace-nowrap">{{ client_name }}</span> to:</p>
<p class="cpd-text-secondary cpd-text-body-lg-regular">{% if grant.redirect_uri is starting_with("http") %}<span class="whitespace-nowrap">at {{ grant.redirect_uri | simplify_url }}</span> {% endif %}wants to access your account. This will allow <span class="whitespace-nowrap">{{ client_name }}</span> to:</p>
</div>

<div class="consent-scope-list">
Expand Down