This module is a JavaScript framework for SASL authentication and data security. Mechanisms are pluggable, allowing a server and client to negotiate supported mechanisms when performing authentication in connection-oriented protocols.
$ npm install saslmechanisms
$ volo add jaredhanson/js-sasl sasl
Create a SASL mechanism factory.
var factory = new sasl.Factory();
Register supported SASL mechanisms.
factory.use(require('sasl-plain'));
Mechanism | Developer |
---|---|
ANONYMOUS | Jared Hanson |
DIGEST-MD5 | Jared Hanson |
EXTERNAL | Jared Hanson |
PLAIN | Jared Hanson |
XOAUTH2 | Jared Hanson |
X-FACEBOOK-PLATFORM | Jared Hanson |
X-OAUTH2 | Jared Hanson |
To run tests in a browser, execute the Make target for the desired browser:
$ make test-chrome
$ make test-firefox
$ make test-safari
Headless tests can be executed directly from a terminal:
$ make test-phantomjs
To run tests in Node:
$ make test-node
Copyright (c) 2012-2013 Jared Hanson <http://jaredhanson.net/>