Comunica 干扰固态客户端 Authn Http 演员
一个 HTTP 密码 演员 使用 入侵的固态客户端 - authn - js 库。 。 。 .
要使这一行为者适用,上下文必须包含经认证的 Session 对象在 '@comunica/actor-http-inrupt-solid-client-authn:session' 条目,例如:
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,
});
这个模块是 通信框架, (中文(简体) ), 并且只能用于 想要建立自己的查询引擎的开发者。 。 。 .
如果您想要询问Comunica, 请点击这里。 。 。 .
安装
$ yarn add @comunica/actor-http-inrupt-solid-client-authn
配置
安装后,此软件包可以添加到您的引擎配置中如下:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-inrupt-solid-client-authn/^5.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "urn:comunica:default:http/actors#inrupt-solid-client-authn",
"@type": "ActorHttpInruptSolidClientAuthn"
}
]
}