Passport Persona Express Module
This express module creates three endpoints to manage authentication
using the Persona
service.
INSTALL
npm install x-persona --save
SETUP (example)
var authenticate = ;app;app;// attach to the `_api/session` endpointapp;
API
LOGIN (PUT /_api/session)
When Persona returns an assertion value, you need to submit a PUT via an ajax call. Passing a JSON
doc with the assertion.
;
SESSION (GET /_api/session)
This api call will return the current session of the user logged into the system.
LOGOUT (DELETE /_api/session)
This api call will perform a logout using the passport helper method.
TEST
npm test
FAQ
LICENSE
MIT
SUPPORT
TODO
- add tests
- enable other passport strategies