From e2284c4c42e22cd933f77ef0b6d6a4120c902778 Mon Sep 17 00:00:00 2001 From: Wouter Termont Date: Mon, 15 Mar 2021 14:37:32 +0100 Subject: [PATCH] feat: Added oidc validation triples to template * feat: added oidc validation triples to template Signed-off-by: Wouter Termont * fix: Add missing newline Co-authored-by: Joachim Van Herwegen --- src/pods/settings/PodSettings.ts | 8 ++++++++ templates/pod/profile/card$.ttl | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/pods/settings/PodSettings.ts b/src/pods/settings/PodSettings.ts index d32999f39..24e4cc240 100644 --- a/src/pods/settings/PodSettings.ts +++ b/src/pods/settings/PodSettings.ts @@ -25,4 +25,12 @@ export interface PodSettings extends NodeJS.Dict { * E-mail of the owner. Used in provisioning templates. */ email?: string; + /** + * The OIDC issuer of the owner's WebId. + */ + oidcIssuer?: string; + /** + * A registration token for linking the owner's WebId to an IdP. + */ + oidcIssuerRegistrationToken?: string; } diff --git a/templates/pod/profile/card$.ttl b/templates/pod/profile/card$.ttl index 77489553a..4c0c0364d 100644 --- a/templates/pod/profile/card$.ttl +++ b/templates/pod/profile/card$.ttl @@ -1,4 +1,5 @@ @prefix foaf: . +@prefix solid: . <> a foaf:PersonalProfileDocument; @@ -7,4 +8,6 @@ <{{webId}}> a foaf:Person; - foaf:name "{{name}}". + foaf:name "{{name}}"; + solid:oidcIssuer <{{oidcIssuer}}> ; + solid:oidcIssuerRegistrationToken "{{oidcIssuerRegistrationToken}}" .