GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add authorization callback for subscription requests · Issue #28 · nodeSolidServer/node-solid-ws

Add authorization callback for subscription requests #28

New issue
Copy link
New issue
Copy link
Open
#30
#29
Open
Add authorization callback for subscription requests#28
#30
#29
Copy link

Description

@melvincarvalho
melvincarvalho
opened on Jan 7, 2026
Issue body actions

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 read access to.

This can leak information - a subscriber learns when a resource changes, even if they can't read it.

Proposed solution

Add an optional authorize callback that servers can use to check permissions:

const solidWs = SolidWs(server, app, {
  authorize: (iri, req, callback) => {
    // Check if user has read access to iri
    // callback(null, true) to allow
    // callback(null, false) to deny
  }
})

If authorization fails, send err <url> forbidden instead of ack.

This keeps solid-ws flexible (default allows all, as today) while letting servers like NSS integrate their ACL checking.

Happy to submit a PR for this if it sounds reasonable!

Related: nodeSolidServer/node-solid-server#1334

Activity

  1. melvincarvalho
    added a commit that references this issue on Jan 7, 2026

    feat: add authorize callback for subscription requests

    This issue will close once commit 37c7282 is merged into the 'main' branch.
    37c7282
  2. bourgeoa
    linked a pull request that will close this issueadd optional authorize callback and update dependencies #30on Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.