From 14a0b557413ead2b253ba16bd7f719156cd032f7 Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Tue, 10 Dec 2024 12:22:06 +0100 Subject: [PATCH] Override consent dialog with our own wording --- config/pivot-overrides.json | 10 ++ templates/identity/oidc/consent.html.ejs | 111 +++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 templates/identity/oidc/consent.html.ejs diff --git a/config/pivot-overrides.json b/config/pivot-overrides.json index 57c6e49..082b749 100644 --- a/config/pivot-overrides.json +++ b/config/pivot-overrides.json @@ -79,6 +79,16 @@ "filePath": "./templates/identity/password/login.html.ejs", "route": { "@id": "urn:solid-server:default:LoginPasswordRoute" } } + }, + { + "@id": "urn:pivot:default:consentDialogOverride", + "@type": "Override", + "overrideInstance": { "@id": "urn:solid-server:default:OidcConsentHtml" }, + "overrideParameters": { + "@type": "HtmlViewEntry", + "filePath": "./templates/identity/oidc/consent.html.ejs", + "route": { "@id": "urn:solid-server:default:OidcConsentRoute" } + } } ] } diff --git a/templates/identity/oidc/consent.html.ejs b/templates/identity/oidc/consent.html.ejs new file mode 100644 index 0000000..6b54956 --- /dev/null +++ b/templates/identity/oidc/consent.html.ejs @@ -0,0 +1,111 @@ +

An application is requesting full access

+

+

+ Do you trust this application + to read and write all your data on your behalf? +

+
+
+
+ Choose your WebID to authorize +
    +
+
+ +
+
    +
  1. + +
  2. +
+
+ +

+ + + + +

+
+ +