https://github.com/jaredhanson/js-sasl
SASL mechanism factory.
https://github.com/jaredhanson/js-sasl
Last synced: 8 months ago
JSON representation
SASL mechanism factory.
- Host: GitHub
- URL: https://github.com/jaredhanson/js-sasl
- Owner: jaredhanson
- License: mit
- Created: 2012-12-26T17:00:12.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-19T15:40:47.000Z (over 12 years ago)
- Last Synced: 2025-04-10T21:47:48.923Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 230 KB
- Stars: 11
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SASL
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.
## Install
##### npm
$ npm install saslmechanisms
##### volo
$ volo add jaredhanson/js-sasl sasl
## Usage
Create a SASL mechanism factory.
```javascript
var factory = new sasl.Factory();
```
Register supported SASL mechanisms.
```
factory.use(require('sasl-plain'));
```
## Mechanisms
|Mechanism |Developer |
|-----------------------------------------------------------------------------------|------------------------------------------------|
|[ANONYMOUS](https://github.com/jaredhanson/js-sasl-anonymous) |[Jared Hanson](https://github.com/jaredhanson) |
|[DIGEST-MD5](https://github.com/jaredhanson/js-sasl-digest-md5) |[Jared Hanson](https://github.com/jaredhanson) |
|[EXTERNAL](https://github.com/jaredhanson/js-sasl-external) |[Jared Hanson](https://github.com/jaredhanson) |
|[PLAIN](https://github.com/jaredhanson/js-sasl-plain) |[Jared Hanson](https://github.com/jaredhanson) |
|[XOAUTH2](https://github.com/jaredhanson/js-sasl-xoauth2) |[Jared Hanson](https://github.com/jaredhanson) |
|[X-FACEBOOK-PLATFORM](https://github.com/jaredhanson/js-sasl-x-facebook-platform) |[Jared Hanson](https://github.com/jaredhanson) |
|[X-OAUTH2](https://github.com/jaredhanson/js-sasl-x-oauth2) |[Jared Hanson](https://github.com/jaredhanson) |
## Compatibility
##### Browser
[](http://ci.testling.com/jaredhanson/js-sasl)
##### Modules
- [AMD](https://github.com/amdjs/amdjs-api)
- [CommonJS](http://www.commonjs.org/)
- [Node](http://nodejs.org/)
## Tests
[](http://travis-ci.org/jaredhanson/js-sasl) [](http://david-dm.org/jaredhanson/js-sasl)
##### Browser
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
##### Node
To run tests in Node:
$ make test-node
## Credits
- [Jared Hanson](http://github.com/jaredhanson)
## License
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2012-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>