a node/command-line Solid client with persistent login
This library provides the same API and abilities as solid-auth-client but works in a browserless nodejs context.
login({ idp:"https://idp.example.com", username:"you", password:"hmm" })
The login method needs an Identity Provider, username, and password. Those may be passed in as an object or read from a specified JSON file. If called with no arguments, login() will look for a credentials file in ~/.solid-credentials.json.
Two exta optional configurations in the credentials file are useful for testing and for interactive shells:
base - a base folder location test - a folder relative to the base where test files may be written
For example:
{
idp : "https://idp.example.com",
username : "you",
password : "xxx",
base : "https://you.example.com/public",
test : "/test",
}
In this example, tests would be run in "https://you.example.com/public/test"
© Jeff Zucker, 2019, may be freely distributed using an MIT license