Skip to content

a node/command-line Solid client with persistent login

License

Notifications You must be signed in to change notification settings

kustomzone/solid-auth-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solid-auth-cli

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()

login( path-to-credentials-json-file )

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

About

a node/command-line Solid client with persistent login

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • HTML 0.1%