Skip to content

magnetik/node-webid

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 39 commits ahead, 3 commits behind antoniogarrote:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

#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

About

WebID node.js library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 100.0%