@comunica/actor-http-inrupt-solid-client-authn
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

Comunica Inrupt Solid Client Authn Http Actor

npm version

An HTTP actor that does authenticated Solid requests using Inrupt's solid-client-authn-js libraries.

To make this actor apply, the context must contain an authenticated Session object at the '@comunica/actor-http-inrupt-solid-client-authn:session' entry, for example:

const { interactiveLogin } = require('solid-node-interactive-auth');
const session = await interactiveLogin({ oidcIssuer: 'https://solidcommunity.net/' });

await newEngine().query('SELECT * WHERE { ?s ?p ?o }', {
  sources: [ 'http://example.org/some-page' ],
  '@comunica/actor-http-inrupt-solid-client-authn:session': session,
});

This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

Click here if you just want to query with Comunica.

Install

$ yarn add @comunica/actor-http-inrupt-solid-client-authn

Configure

After installing, this package can be added to your engine's configuration as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-inrupt-solid-client-authn/^3.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:http/actors#inrupt-solid-client-authn",
      "@type": "ActorHttpInruptSolidClientAuthn"
    }
  ]
}

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @comunica/actor-http-inrupt-solid-client-authn

Weekly Downloads

15

Version

3.0.1

License

MIT

Unpacked Size

24.3 kB

Total Files

12

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod