pdsinterop / solid-nextcloud

A plugin to make Nextcloud compatible with Solid
https://pdsinterop.org/solid-nextcloud/
MIT License
72 stars 11 forks source link

Secure WebSockets #105

Open michielbdejong opened 2 years ago

michielbdejong commented 2 years ago

The new Notifications protocol that is expected to become required in addition to the current pubsub protocol requires:

So far I created the rudimentary https://github.com/pdsinterop/solid-nextcloud/blob/main/solid/lib/Controller/SolidWebsocketController.php which points to the old pubsub server.

I thought of a way to improve this:

michielbdejong commented 2 years ago

Ah wait, the webhook sends a POST body, not a GET query, of course.

michielbdejong commented 2 years ago
OCA\\Solid\\Controller\\SolidWebhookController::registerWs(): Argument #1 ($topic) must be of type string, null given, called in /var/www/html/lib/private/AppFramework/Http/Dispatcher.php on line 225
michielbdejong commented 2 years ago

Got the tests passing on my laptop, now let's see if they also pass in GitHub Actions.