3.2.1 • Published 3 years ago

@ldf/feature-webid v3.2.1

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

Linked Data Fragments Server - WebID

npm version

This module adds a controller extension that only allows authenticated client with WebID's to perform requests. This extension will only be active when the server is running in https-mode.

This package is not included by default in @ldf/server and @ldf/preset-qpf.

This package is a Linked Data Fragments Server module.

Usage in other packages

When this module is used in a package, then the JSON-LD contexthttps://linkedsoftwaredependencies.org/contexts/@ldf/feature-webid.jsonld` must be imported.

This package exposes the following config entries:

  • WebIdControllerExtension: Extends Quad Pattern Fragments responses with WebID authentication. Should be used as @type value.

Next to adding the WebID controller extension, you must enable HTTPS-mode, as shown in the example below.

For example:

{
  "@context": [
    "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/core/^3.0.0/components/context.jsonld",
    "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/preset-qpf/^3.0.0/components/context.jsonld",
    "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/feature-webid/^3.0.0/components/context.jsonld",
  ],
  "@id": "urn:ldf-server:my",
  "import": "preset-qpf:config-defaults.json",

  "controllers": [
    {
      "@id": "urn:ldf-server:myQuadPatternFragmentsController", // This should refer to your existing QuadPatternFragmentsController
      "@type": "QuadPatternFragmentsController",
      "qpfControllerExtension": {
        "@id": "urn:ldf-server:myWebIdControllerExtension",
        "@type": "WebIdControllerExtension"
      }
    }
  ],

  "protocol": "https"
}

License

The Linked Data Fragments server is written by Ruben Verborgh, Miel Vander Sande, Ruben Taelman and colleagues.

This code is copyrighted by Ghent University – imec and released under the MIT license.

3.2.1

3 years ago

3.2.0

3 years ago

3.1.0

4 years ago

3.0.7

4 years ago

3.0.5

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago