From 5ca14b540b1163e1880ade0e5160b54dc36ba8d5 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 11 Sep 2023 16:47:02 +0100 Subject: [PATCH 1/2] Don't show redirect_uri on consent screen if not HTTP Because we don't know if it is validated by the OS at all and so could be misleading to the user --- templates/pages/consent.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/pages/consent.html b/templates/pages/consent.html index 461722f29..9f9dc579d 100644 --- a/templates/pages/consent.html +++ b/templates/pages/consent.html @@ -32,7 +32,7 @@ {% endif %}

{{ client_name }}

-

at {{ grant.redirect_uri | simplify_url }} wants to access your account. This will allow {{ client_name }} to:

+

{% if client.redirect_uri is starting_with("http") %}at {{ grant.redirect_uri | simplify_url }} {% endif %}wants to access your account. This will allow {{ client_name }} to: