Query-Solid icon indicating copy to clipboard operation
Query-Solid copied to clipboard

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

Open linonetwo opened this issue 6 years ago • 3 comments

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?

linonetwo avatar Jan 02 '20 03:01 linonetwo

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.

RubenVerborgh avatar Jan 02 '20 09:01 RubenVerborgh

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.

linonetwo avatar Jan 02 '20 11:01 linonetwo

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.

RubenVerborgh avatar Jan 02 '20 21:01 RubenVerborgh