JavaScript implementation of PLAIN SASL mechanism.
JavaScript
Latest commit 998a167 Dec 27, 2012 @jaredhanson Bump version to 0.1.0.
Permalink
Failed to load latest commit information.
lib Make challenge function chainable. Dec 26, 2012
test Use Travis CI. Dec 28, 2012
.gitignore Initial commit. Dec 21, 2012
.npmignore Use Travis CI. Dec 28, 2012
.travis.yml Use Travis CI. Dec 28, 2012
LICENSE Initial commit. Dec 21, 2012
Makefile Add phony targets to Makefile. Dec 22, 2012
README.md Add README. Dec 28, 2012
main.js Initial commit. Dec 21, 2012
package.json Bump version to 0.1.0. Dec 28, 2012

README.md

SASL : PLAIN

This module is a JavaScript implementation of the PLAIN SASL mechanism, which plugs into the SASL framework.

Install

npm
$ npm install sasl-plain
volo
$ volo add jaredhanson/js-sasl-plain sasl-plain

For more information on using volo to manage JavaScript modules, visit http://volojs.org/.

Usage

Register the PLAIN mechanism.

factory.use(require('sasl-plain'));

Send an authentication response with necessary credentials.

var mech = factory.create(['PLAIN']);
var resp = mech.response({ username: 'johndoe', password: 'secret' });

Compatibility

Browser

This module is AMD-compliant, and can be loaded by module loaders such as RequireJS.

This module is optimized for use with Anchor.

Node

This module is compatible with Node.

Tests

Browser

To run tests in a browser, execute the Make target for the desired browser:

$ make test-chrome
$ make test-firefox
$ make test-safari
PhantomJS

To run headless tests from a terminal using PhantomJS:

$ make test-phantomjs
Node

To run tests in Node:

$ make test-node
Status

Travis CI

Credits

License

The MIT License

Copyright (c) 2012 Jared Hanson <http://jaredhanson.net/>