From 9321addafa7a63d42a1c11415a55af3e9c695e08 Mon Sep 17 00:00:00 2001 From: Joachim Van Herwegen Date: Wed, 11 Oct 2023 18:11:48 +0200 Subject: [PATCH] feat: Add config option to enable account and pod creation --- config/file-root-pod.json | 2 +- config/identity/README.md | 1 + config/identity/handler/no-accounts-pods.json | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 config/identity/handler/no-accounts-pods.json diff --git a/config/file-root-pod.json b/config/file-root-pod.json index 2b4516050..bf0270579 100644 --- a/config/file-root-pod.json +++ b/config/file-root-pod.json @@ -11,7 +11,7 @@ "css:config/http/static/default.json", "css:config/identity/access/public.json", "css:config/identity/email/default.json", - "css:config/identity/handler/no-accounts.json", + "css:config/identity/handler/no-accounts-pods.json", "css:config/identity/oidc/default.json", "css:config/identity/ownership/token.json", "css:config/identity/pod/static.json", diff --git a/config/identity/README.md b/config/identity/README.md index 1a7aac67b..94bfc43c4 100644 --- a/config/identity/README.md +++ b/config/identity/README.md @@ -30,6 +30,7 @@ Contains everything needed for setting up the account management. * *default*: All account features enabled. * *disabled*: Completely disables everything account related. * *no-accounts*: Disables the creation of new accounts. +* *no-accounts-pods*: Disables the creation of new accounts and creating new pods for existing accounts. * *no-pods*: Disables the creation of new pods. ## OIDC diff --git a/config/identity/handler/no-accounts-pods.json b/config/identity/handler/no-accounts-pods.json new file mode 100644 index 000000000..e0e63bcab --- /dev/null +++ b/config/identity/handler/no-accounts-pods.json @@ -0,0 +1,17 @@ +{ + "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld", + "import": [ + "css:config/identity/handler/base/default.json", + "css:config/identity/handler/routing/default.json", + "css:config/identity/handler/storage/password.json", + + "css:config/identity/handler/enable/client-credentials.json", + "css:config/identity/handler/enable/password.json", + "css:config/identity/handler/enable/webid.json" + ], + "@graph": [ + { + "comment": "Disables account creation and creating new pods." + } + ] +}