JavaScript implementation of X-OAUTH2 SASL mechanism.
npm install sasl-x-oauth2This module is a JavaScript implementation of the X-OAUTH2 SASL mechanism, which
plugs into the SASL framework.
##### npm
$ npm install sasl-x-oauth2
##### volo
$ volo add jaredhanson/js-sasl-x-oauth2 sasl-x-oauth2
For more information on using volo to manage JavaScript modules, visit http://volojs.org/.
Register the X-OAUTH2 mechanism.
``javascript`
factory.use(require('sasl-x-oauth2'));
Send an authentication response with necessary credentials.
```
var mech = factory.create(['X-OAUTH2']);
var resp = mech.response({ username: 'janedoe', token: 's3cr2t' });
##### 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.
##### 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

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