LDflex / Query-Solid

Simple access to data in Solid pods through LDflex expressions
https://solid.github.io/query-ldflex/
MIT License
66 stars 15 forks source link

How to use custom auth client so I can login in NodeJS? #52

Open linonetwo opened 4 years ago

linonetwo commented 4 years ago

I'm using import solidAuth from 'solid-auth-cli'; so I can fetch in NodeJS.

How to pass obtained Session to query-ldflex? Is there a chance to inject depencency?

RubenVerborgh commented 4 years ago

At the moment, this wouldn't be easy, since the dependency is all the way down at https://github.com/comunica/actor-http-solid-auth-fetch. We'd have to change it there.

However, given that solid-auth-cli is currently a hack (by necessity), I'm hesitant to incorporate it. I'm awaiting @jaxoncreed's work to make this better.

linonetwo commented 4 years ago

Actually what I want to do is writing data using nodejs, which requires login.

If there is a built-in way to login when using query-ldflex is also OK.

RubenVerborgh commented 4 years ago

We currently don't have this, and it won't be easy to achieve this in a reliable and secure way with the existing libraries, unfortunately.