Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript VimL
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
.vimrc
LICENCE
README.md
package.json

README.md

IDPPersona Build Status

Persona client

Getting Started

Install the module with: npm install idp-persona

Usage

var idpPersona = require('idp-github')({ audience: 'http://myurl' });

// Using the assertion provided by the Persona login, get the identity:
idpPersona(assertion, function (err, identity) {
  if (err) {
    console.error('explode');
  }
  else {
    do_amazing_things_with(identity.id, identity.email);
    // identity.id and identity.email are the same thing
  }
});
Something went wrong with that request. Please try again.