Skip to content

OlliSchu/express-solid-auth-wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-solid-auth-wrapper

Middleware functions to authenticate to a remote solid service. Merely a wrapper around '@solid/access-token-verifier' and 'solid-node-client'. Use npx @inrupt/generate-oidc-token to provide your app with Solid credentials. This module around contains the following functions:

  • extractWebId(): middleware function to extract the webId from a request sent to the service (DPOP). Invoked via app.use(extractWebId)

  • setSatellite(config): middleware function to use the service as an authenticated satellite for an existing Pod. Invoked via app.use(setSatellite(config)), where config is a JSON object retrieved via solid-node-client in the following form { "refreshToken" : "a-refresh-token", "clientId" : "a-client-id", "clientSecret" : "a-client-secret", "oidcIssuer" : "https://pod.lbdserver.org/" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%