DEPRECATED - Migrated to https://github.com/mozilla/fxa
039dfb5761 | ||
---|---|---|
app | ||
scripts | ||
server | ||
tests | ||
.awsbox.json | ||
.bowerrc | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.jshintrc | ||
.travis.yml | ||
Gruntfile.js | ||
README.md | ||
bower.json | ||
package.json |
README.md
Firefox Accounts Content Server
Static server that hosts Firefox Account sign up, sign in, email verification, etc. flows.
Prerequisites
- node 0.10.x or higher
- npm
- Java
- Selenium Server Standalone 2.35.0
- libgmp
- On Linux: install libgmp and libgmp-dev packages
- On Mac OS X: brew install gmp
Development Setup
npm install
npm start
Testing
Setup
There is quite a bit of setup to do before you can test this service, which is non-optimal, but for now:
- Run Selenium Server:
java -jar selenium-server-standalone-2.35.0.jar
(see Prerequisites) - Run the Firefox Account Bridge locally:
npm start
- Run an instance of the fxa-auth-server at 127.0.0.1:9000.
Running the tests
- Integration tests between the FAB and fxa-auth-server:
npm test
- Functional tests:
npm run-script test-functional
Configuration
The default auth server is http://api-accounts.dev.lcip.org
. To change this,
edit config.json
on your deployed instance.
{
'fxaccount_url': 'http://your.auth.server.here.org'
}