Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
linonetwo opened this issue Jan 2, 2020 · 3 comments
Open

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

linonetwo opened this issue Jan 2, 2020 · 3 comments

Comments

@linonetwo
Copy link

linonetwo commented Jan 2, 2020

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
Copy link
Member

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 linonetwo changed the title How to use custom auth client? How to use custom auth client to login in NodeJS? Jan 2, 2020
@linonetwo linonetwo changed the title How to use custom auth client to login in NodeJS? How to use custom auth client so I can login in NodeJS? Jan 2, 2020
@linonetwo
Copy link
Author

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants