mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Allow registration to be disabled
This commit is contained in:
parent
2d1d098b02
commit
916dce5bd5
@ -11,6 +11,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/token.json",
|
||||
"files-scs:config/identity/pod/static.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/dpop-bearer.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
@ -11,6 +11,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/token.json",
|
||||
"files-scs:config/identity/pod/dynamic.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/dpop-bearer.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
@ -11,6 +11,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/token.json",
|
||||
"files-scs:config/identity/pod/static.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/dpop-bearer.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
@ -11,6 +11,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/token.json",
|
||||
"files-scs:config/identity/pod/static.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/dpop-bearer.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
@ -23,3 +23,8 @@ What to use for pod creation.
|
||||
* *dynamic*: Every created pod has its own Components.js config for its ResourceStore,
|
||||
which can differ from the others.
|
||||
* *static*: All pod data is stored in separate containers in the same ResourceStore.
|
||||
|
||||
## Registration
|
||||
If users should be able to register on the server.
|
||||
* *enabled*: Enables registration.
|
||||
* *disabled*: Disables registration.
|
||||
|
@ -4,7 +4,6 @@
|
||||
"files-scs:config/identity/handler/interaction/handlers/forgot-password.json",
|
||||
"files-scs:config/identity/handler/interaction/handlers/initial.json",
|
||||
"files-scs:config/identity/handler/interaction/handlers/login.json",
|
||||
"files-scs:config/identity/handler/interaction/handlers/registration.json",
|
||||
"files-scs:config/identity/handler/interaction/handlers/reset-password.json",
|
||||
"files-scs:config/identity/handler/interaction/handlers/session.json"
|
||||
],
|
||||
@ -15,7 +14,6 @@
|
||||
"@type": "WaterfallHandler",
|
||||
"handlers": [
|
||||
{ "@id": "urn:solid-server:auth:password:InitialInteractionHandler" },
|
||||
{ "@id": "urn:solid-server:auth:password:RegistrationInteractionHandler" },
|
||||
{ "@id": "urn:solid-server:auth:password:LoginInteractionHandler" },
|
||||
{ "@id": "urn:solid-server:auth:password:SessionInteractionHandler" },
|
||||
{ "@id": "urn:solid-server:auth:password:ForgotPasswordInteractionHandler" },
|
||||
|
8
config/identity/registration/disabled.json
Normal file
8
config/identity/registration/disabled.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld",
|
||||
"@graph": [
|
||||
{
|
||||
"comment": "Disable registration by not attaching a registration handler."
|
||||
}
|
||||
]
|
||||
}
|
15
config/identity/registration/enabled.json
Normal file
15
config/identity/registration/enabled.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld",
|
||||
"import": [
|
||||
"files-scs:config/identity/registration/handler/registration.json"
|
||||
],
|
||||
"@graph": [
|
||||
{
|
||||
"comment": "Enable registration by adding a registration handler to the list of interaction handlers.",
|
||||
"@id": "urn:solid-server:auth:password:InteractionHttpHandler",
|
||||
"WaterfallHandler:_handlers": [
|
||||
{ "@id": "urn:solid-server:auth:password:RegistrationInteractionHandler" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -11,6 +11,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/token.json",
|
||||
"files-scs:config/identity/pod/static.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/dpop-bearer.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
@ -11,6 +11,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/token.json",
|
||||
"files-scs:config/identity/pod/static.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/dpop-bearer.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
@ -11,6 +11,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/unsafe-no-check.json",
|
||||
"files-scs:config/identity/pod/dynamic.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/debug-auth-header.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
@ -10,6 +10,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/token.json",
|
||||
"files-scs:config/identity/pod/static.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/dpop-bearer.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
@ -11,6 +11,7 @@
|
||||
"files-scs:config/identity/handler/default.json",
|
||||
"files-scs:config/identity/ownership/unsafe-no-check.json",
|
||||
"files-scs:config/identity/pod/static.json",
|
||||
"files-scs:config/identity/registration/enabled.json",
|
||||
"files-scs:config/ldp/authentication/debug-auth-header.json",
|
||||
"files-scs:config/ldp/authorization/webacl.json",
|
||||
"files-scs:config/ldp/handler/default.json",
|
||||
|
Loading…
x
Reference in New Issue
Block a user