-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add notification configuration, modify notification subscription…
… handler behaviour
- Loading branch information
Showing
8 changed files
with
226 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld", | ||
"import": [ | ||
"files-scs:config/app/init/initializers/root.json" | ||
], | ||
"@graph": [ | ||
{ | ||
"comment": "These are all the handlers a request will go through until it is handled.", | ||
"@id": "urn:solid-server:default:HttpHandler", | ||
"@type": "SequenceHandler", | ||
"handlers": [ | ||
{ "@id": "urn:solid-server:default:Middleware" }, | ||
{ | ||
"@type": "WaterfallHandler", | ||
"handlers": [ | ||
{ "@id": "urn:solid-server:default:StaticAssetHandler" }, | ||
{ "@id": "urn:solid-server:default:SetupHandler" }, | ||
{ "@id": "urn:solid-server:default:NotificationWellKnownHandler" }, | ||
{ "@id": "urn:solid-server:default:NotificationGatewayHandler" }, | ||
{ "@id": "urn:solid-server:default:NotificationSubscriptionHandler" }, | ||
{ "@id": "urn:solid-server:default:AuthResourceHttpHandler" }, | ||
{ "@id": "urn:solid-server:default:IdentityProviderHandler" }, | ||
{ "@id": "urn:solid-server:default:LdpHandler" } | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld", | ||
"import": [ | ||
"files-scs:config/app/main/default.json", | ||
"files-scs:config/app/init/initialize-prefilled-root.json", | ||
"files-scs:config/app/setup/optional.json", | ||
"files-scs:config/http/handler/default.json", | ||
"files-scs:config/http/middleware/websockets.json", | ||
"files-scs:config/http/server-factory/websockets.json", | ||
"files-scs:config/http/static/default.json", | ||
"files-scs:config/identity/access/public.json", | ||
"files-scs:config/identity/email/default.json", | ||
"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", | ||
"files-scs:config/ldp/metadata-parser/default.json", | ||
"files-scs:config/ldp/metadata-writer/default.json", | ||
"files-scs:config/ldp/modes/default.json", | ||
"files-scs:config/notification/default.json", | ||
"files-scs:config/storage/backend/memory.json", | ||
"files-scs:config/storage/key-value/resource-store.json", | ||
"files-scs:config/storage/middleware/default.json", | ||
"files-scs:config/util/auxiliary/acl.json", | ||
"files-scs:config/util/identifiers/suffix.json", | ||
"files-scs:config/util/index/default.json", | ||
"files-scs:config/util/logging/winston.json", | ||
"files-scs:config/util/representation-conversion/default.json", | ||
"files-scs:config/util/resource-locker/memory.json", | ||
"files-scs:config/util/variables/default.json" | ||
], | ||
"@graph": [ | ||
{ | ||
"comment": "A single-pod server that stores its resources in memory." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"comment": "Handles the notification well-known solid endpoint.", | ||
"@id": "urn:solid-server:default:NotificationWellKnownHandler", | ||
"@type": "RouterHandler", | ||
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" }, | ||
"args_targetExtractor": { "@id": "urn:solid-server:default:TargetExtractor" }, | ||
"args_allowedMethods": [ "GET" ], | ||
"args_allowedPathNames": [ "^/\\.well-known/solid" ], | ||
"args_handler": { "@id": "urn:solid-server:default:NotificationWellKnownParsingHandler" } | ||
}, | ||
{ | ||
"comment": "Handles well-known endpoint input parsing.", | ||
"@id": "urn:solid-server:default:NotificationWellKnownParsingHandler", | ||
"@type": "ParsingHttpHandler", | ||
"args_requestParser": { "@id": "urn:solid-server:default:RequestParser" }, | ||
"args_metadataCollector": { "@id": "urn:solid-server:default:OperationMetadataCollector" }, | ||
"args_errorHandler": { "@id": "urn:solid-server:default:ErrorHandler" }, | ||
"args_responseWriter": { "@id": "urn:solid-server:default:ResponseWriter" }, | ||
"args_operationHandler": { | ||
"comment": "Handles notification well-known solid behaviour.", | ||
"@id": "urn:solid-server:default:NotificationWellKnownHttpHandler", | ||
"@type": "NotificationWellKnownHttpHandler", | ||
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" } | ||
} | ||
}, | ||
{ | ||
"comment": "Handles the notification gateway endpoint.", | ||
"@id": "urn:solid-server:default:NotificationGatewayHandler", | ||
"@type": "RouterHandler", | ||
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" }, | ||
"args_targetExtractor": { "@id": "urn:solid-server:default:TargetExtractor" }, | ||
"args_allowedMethods": [ "POST" ], | ||
"args_allowedPathNames": [ "^/gateway"], | ||
"args_handler": { "@id": "urn:solid-server:default:NotificationGatewayParsingHandler" } | ||
}, | ||
{ | ||
"comment": "Handles notification gateway input parsing.", | ||
"@id": "urn:solid-server:default:NotificationGatewayParsingHandler", | ||
"@type": "ParsingHttpHandler", | ||
"args_requestParser": { "@id": "urn:solid-server:default:RequestParser" }, | ||
"args_metadataCollector": { "@id": "urn:solid-server:default:OperationMetadataCollector" }, | ||
"args_errorHandler": { "@id": "urn:solid-server:default:ErrorHandler" }, | ||
"args_responseWriter": { "@id": "urn:solid-server:default:ResponseWriter" }, | ||
"args_operationHandler": { | ||
"comment": "Handles notification handler behaviour.", | ||
"@id": "urn:solid-server:default:NotificationGatewayHttpHandler", | ||
"@type": "NotificationGatewayHttpHandler", | ||
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" }, | ||
"args_subscriptionPath": "subscription", | ||
"args_subscriptionHandler": { "@id": "urn:solid-server:default:NotificationSubscriptionHttpHandler"} | ||
} | ||
}, | ||
{ | ||
"comment": "Handles the notification subscription endpoint.", | ||
"@id": "urn:solid-server:default:NotificationSubscriptionHandler", | ||
"@type": "RouterHandler", | ||
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" }, | ||
"args_targetExtractor": { "@id": "urn:solid-server:default:TargetExtractor" }, | ||
"args_allowedMethods": [ "POST" ], | ||
"args_allowedPathNames": [ "^/subscription" ], | ||
"args_handler": { "@id": "urn:solid-server:default:NotificationSubscriptionParsingHandler" } | ||
}, | ||
{ | ||
"comment": "Handles notification subscription input parsing.", | ||
"@id": "urn:solid-server:default:NotificationSubscriptionParsingHandler", | ||
"@type": "ParsingHttpHandler", | ||
"args_requestParser": { "@id": "urn:solid-server:default:RequestParser" }, | ||
"args_metadataCollector": { "@id": "urn:solid-server:default:OperationMetadataCollector" }, | ||
"args_errorHandler": { "@id": "urn:solid-server:default:ErrorHandler" }, | ||
"args_responseWriter": { "@id": "urn:solid-server:default:ResponseWriter" }, | ||
"args_operationHandler": { | ||
"comment": "Handles notification subscription behaviour.", | ||
"@id": "urn:solid-server:default:NotificationSubscriptionHttpHandler", | ||
"@type": "NotificationSubscriptionHttpHandler", | ||
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" }, | ||
"args_wsEndpoint": { "@id": "urn:solid-server:default:variable:baseUrl" }, | ||
"args_credentialsExtractor": { "@id": "urn:solid-server:default:CredentialsExtractor" }, | ||
"args_permissionReader": { "@id": "urn:solid-server:default:PermissionReader" }, | ||
"args_notificationStorage": { "@id": "urn:solid-server:default:NotificationStorage"}, | ||
"args_handlers": [{ "@id": "urn:solid-server:default:WebHookSubscription2021Handler"}], | ||
"args_source": { "@id": "urn:solid-server:default:ResourceStore"} | ||
} | ||
}, | ||
{ | ||
"comment": "Handles WebHookSubscription2021 subscriptions", | ||
"@id": "urn:solid-server:default:WebHookSubscription2021Handler", | ||
"@type": "WebHookSubscription2021Handler", | ||
"httpClient": { "@id": "urn:solid-server:default:BaseHttpClient" } | ||
}, | ||
{ | ||
"comment": "Handles http calls", | ||
"@id": "urn:solid-server:default:BaseHttpClient", | ||
"@type": "BaseHttpClient" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters