DEPRECATED - Migrated to https://github.com/mozilla/fxa
* Add the FxDesktopRelier that imports `entrypoint` and `context` from the URL. * Relier extended to import `service`, `redirectTo`, `client_id`, and `state` * Initialize either the FxDesktopRelier or normal Relier on startup. * Instead of Metrics importing values directly from the URL, they are fetched from the Relier and passed in on creation. fixes #1568 |
||
---|---|---|
app | ||
grunttasks | ||
locale | ||
scripts | ||
server | ||
tests | ||
.awsbox.json | ||
.bowerrc | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.jscsrc | ||
.jshintrc | ||
.travis.yml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
CONTRIBUTORS.md | ||
Gruntfile.js | ||
LICENSE | ||
README.md | ||
bower.json | ||
npm-shrinkwrap.json | ||
package.json |
README.md
Firefox Accounts Content Server
Travis Tests:
Functional Tests:
Static server that hosts Firefox Account sign up, sign in, email verification, etc. flows.
Prerequisites
- node 0.10.x
- npm
- Grunt (
npm install -g grunt-cli
) - libgmp
- On Linux, Install libgmp and libgmp-dev packages:
sudo apt-get install libgmp3-dev
- On Mac OS X:
brew install gmp
- On Linux, Install libgmp and libgmp-dev packages:
- fxa-auth-server running on 127.0.0.1:9000.
Development Setup
cp server/config/local.json-dist server/config/local.json
npm install
npm start
It will listen on http://127.0.0.1:3030 by default.
Note: If you have issues with npm install
please downgrade to npm 1.3 using npm install -g npm@1.3
(Issue #1594)
Testing
Prerequisites:
- Java JDK or JRE (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
- Selenium Server 2.43.1 (Download)
Setup
- Run Selenium Server
- Run the Firefox Content Server locally:
npm start
- Run an instance of the fxa-auth-server at 127.0.0.1:9000.
e.g. in shell form:
java -jar selenium-server-standalone-2.43.1.jar &
cd fxa-auth-server
npm start &
cd ../fxa-content-server
npm start &
To run tests locally with Selenium:
npm test
Configuration
To change the default auth server edit server/config/*.json
on your deployed instance.
{
"fxaccount_url": "http://your.auth.server.here.org"
}
Grunt Commands
Grunt is used to run common tasks to build, test, and run local servers.
TASK | DESCRIPTION |
---|---|
grunt build |
build production resources. See task source for more documentation |
grunt clean |
remove any built production resources. |
grunt lint |
run JSHint, JSONLint, and JSCS (code style checker) on client side and testing JavaScript. |
grunt server |
run a local server running on port 3030 with development resources. |
grunt server:dist |
run a local server running on port 3030 with production resources. Production resources will be built as part of the task. |
grunt test |
run local Intern tests. |
grunt version |
stamp a new minor version. Updates the version number and creates a new CHANGELOG.md. |
grunt version:patch |
stamp a new patch version. Updates the version number and creates a new CHANGELOG.md. |
Servers
- latest development - https://latest.dev.lcip.org/
- testing - https://nightly.dev.lcip.org/
- stage - https://accounts.stage.mozaws.net/
- production - https://accounts.firefox.com/
License
MPL 2.0