Title: Add authorization callback for subscription requests · Issue #28 · nodeSolidServer/node-solid-ws · GitHub
Open Graph Title: Add authorization callback for subscription requests · Issue #28 · nodeSolidServer/node-solid-ws
X Title: Add authorization callback for subscription requests · Issue #28 · nodeSolidServer/node-solid-ws
Description: Currently, solid-ws accepts all sub
Open Graph Description: Currently, solid-ws accepts all sub
X Description: Currently, solid-ws accepts all sub <url> requests without any authorization check. This means anyone can subscribe to notifications for any resource, even private ones they don't have re...
Opengraph URL: https://github.com/nodeSolidServer/node-solid-ws/issues/28
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add authorization callback for subscription requests","articleBody":"Currently, `solid-ws` accepts all `sub \u003curl\u003e` requests without any authorization check. This means anyone can subscribe to notifications for any resource, even private ones they don't have read access to.\n\nThis can leak information - a subscriber learns when a resource changes, even if they can't read it.\n\n### Proposed solution\n\nAdd an optional `authorize` callback that servers can use to check permissions:\n\n```javascript\nconst solidWs = SolidWs(server, app, {\n authorize: (iri, req, callback) =\u003e {\n // Check if user has read access to iri\n // callback(null, true) to allow\n // callback(null, false) to deny\n }\n})\n```\n\nIf authorization fails, send `err \u003curl\u003e forbidden` instead of `ack`.\n\nThis keeps solid-ws flexible (default allows all, as today) while letting servers like NSS integrate their ACL checking.\n\nHappy to submit a PR for this if it sounds reasonable!\n\nRelated: nodeSolidServer/node-solid-server#1334","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-07T07:59:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/28/node-solid-ws/issues/28"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a4ead938-6abc-9c01-6701-d044d0737965 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD24:110520:EEA998:14D6540:6971FB62 |
| html-safe-nonce | 170588a310e43c9168d598211644cd5c0bee04a18e9103e1933fc15b917c9fb7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDI0OjExMDUyMDpFRUE5OTg6MTRENjU0MDo2OTcxRkI2MiIsInZpc2l0b3JfaWQiOiIyMzcxNDA5MDY2ODk1NDczNTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a4f151c3df60d54f3dc14e54721cf227df02f57d88ca1b3c9ce627f02906ebad |
| hovercard-subject-tag | issue:3787742260 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodeSolidServer/node-solid-ws/28/issue_layout |
| twitter:image | https://opengraph.githubassets.com/24df240d838eeabd94eed88c831f3d27544ecdf8164a68d725c98a6cfedca662/nodeSolidServer/node-solid-ws/issues/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/24df240d838eeabd94eed88c831f3d27544ecdf8164a68d725c98a6cfedca662/nodeSolidServer/node-solid-ws/issues/28 |
| og:image:alt | Currently, solid-ws accepts all sub |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d01a3551afdd1a0e12e78acaf3ba43a9a1f7dcb518695d6ed59db76a9290f13 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodeSolidServer/node-solid-ws git https://github.com/nodeSolidServer/node-solid-ws.git |
| octolytics-dimension-user_id | 104446421 |
| octolytics-dimension-user_login | nodeSolidServer |
| octolytics-dimension-repository_id | 43249504 |
| octolytics-dimension-repository_nwo | nodeSolidServer/node-solid-ws |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43249504 |
| octolytics-dimension-repository_network_root_nwo | nodeSolidServer/node-solid-ws |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 062b05dcdf64ee7a3dad7acabb746494ae0982cc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width