WebID node.js library
CoffeeScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 39 commits ahead, 3 commits behind antoniogarrote:master.
Latest commit 5ee7198 Nov 12, 2013 @magnetik Fix typo
Permalink
Failed to load latest commit information.
src Fix VerificationAgent when parsing multiple keys Nov 12, 2013
.gitignore ignore built webid.js file Sep 3, 2013
Cakefile Build binary in bin/ folder Nov 12, 2013
README.md Fix dependency in Foaf, updated readme Apr 28, 2013
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