Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
WebID node.js library
CoffeeScript
branch: master

This branch is 39 commits ahead, 3 commits behind antoniogarrote:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
Cakefile
README.md
package.json

README.md

node-webid

Node.js module with tools to help using WebID (http://www.webid.info).

Installation

npm

Just require the module webid:

var webid = require('webid');

Manual

Start cake build and get the webid.js in the bin folder.

Usage

Check the project webid-demo to see a working example.

Basic usage:

var webid = require('webid');
var verifAgent = new webid.VerificationAgent(certificate);
    verifAgent.verify(function (result) {
        //Success! User is identified
        var foaf = new webid.Foaf(result);
        req.session.profile = foaf.parse();
    }, function(result) {
        //An error occured
    });

Licence

The lib is available under MIT Licence: http://www.opensource.org/licenses/MIT

Something went wrong with that request. Please try again.