Skip to content

jaredhanson/js-sasl-x-facebook-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SASL : X-FACEBOOK-PLATFORM

This module is a JavaScript implementation of the X-FACEBOOK-PLATFORM SASL mechanism, which plugs into the SASL framework.

Install

npm
$ npm install sasl-x-facebook-platform
volo
$ volo add jaredhanson/js-sasl-x-facebook-platform sasl-x-facebook-platform

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

Usage

Register the X-FACEBOOK-PLATFORM mechanism.

factory.use(require('sasl-x-facebook-platform'));

Send an authentication response with necessary credentials.

var mech = factory.create(['X-FACEBOOK-PLATFORM']);
var resp = mech.challenge('method=GET&nonce=ABCDEFG')
               .response({ apiKey: 'app123', token: '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/>

About

JavaScript implementation of X-FACEBOOK-PLATFORM SASL mechanism.

Resources

License

Stars

Watchers

Forks

Packages

No packages published