DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
Shane Tomlinson 3803c6ef1e
fix(test): Fix the openid-config/metrics flow tests on teamcity
* Set a default value of `allowed_metrics_flow_cors_origins` to `null`
* Change the default value of `pairing.server_base_uri` to
  `wss://dev.channelserver.nonprod.cloudops.mozgcp.net` which is used
  by all dev boxes. Production config will need to be updated to handle
  this change.

fixes #7066

BREAKING CHANGE
2019-03-26 15:38:10 +00:00
.circleci feat(feature-flags): wire in experiments to the feature-flag api 2019-03-19 06:42:58 +00:00
.github/ISSUE_TEMPLATE chore(templates): Add an issue template 2019-02-19 11:15:17 +00:00
app Merge pull request #7073 from MozillaOnline/scale-down-qr-totp r=@shane-tomlinson 2019-03-26 14:05:46 +00:00
docs feat(pairing): add pairing docs 2019-02-12 19:54:57 -05:00
grunttasks feat(feature-flags): wire in experiments to the feature-flag api 2019-03-19 06:42:58 +00:00
locale refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
scripts feat(npm): update to latest npmshrink 2018-12-24 13:24:54 -05:00
server fix(test): Fix the openid-config/metrics flow tests on teamcity 2019-03-26 15:38:10 +00:00
tests feat(oauth): add oauth success screen 2019-03-25 14:14:58 -04:00
.editorconfig feat(forms): replace our password advice with responsive message (#5940) r=@vbudhram,@ryanfeeley 2018-03-02 20:41:37 -05:00
.eslintignore refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
.eslintrc chore(deps): update eslint-plugin-sorting to 0.4.0 2019-02-11 11:33:57 +00:00
.gitattributes
.gitignore feat(css): build CSS using webpack instead of grunt-sass (#6351) r=@vladikoff 2018-07-30 13:40:42 -04:00
.htmllintrc
.nsprc fix(deps): Fix security advisories 2019-02-18 13:34:16 +00:00
.nvmrc fix(node 8): support for node 8 removed 2019-03-12 20:57:17 +05:30
.sass-lint.yml
.travis.yml fix(firefox version): user-agent in functional tests updated to latest firefox 2019-03-08 02:13:26 +05:30
AUTHORS Release v1.133.0 2019-03-19 11:45:14 +00:00
CHANGELOG.md Release v1.133.0 2019-03-19 11:45:14 +00:00
CONTRIBUTING.md refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
Dockerfile-build feat(docker): Use node 10 in the Docker image. 2019-03-06 12:02:15 +00:00
Gruntfile.js
LICENSE
README.md feat(css): build CSS using webpack instead of grunt-sass (#6351) r=@vladikoff 2018-07-30 13:40:42 -04:00
npm-shrinkwrap.json fix(deps): update dependencies 2019-03-25 11:41:20 -04:00
package.json fix(deps): update dependencies 2019-03-25 11:41:20 -04:00
webpack.config.js feat(pairing): enable pairing 2019-02-27 09:04:53 -05:00

README.md

Firefox Accounts Content Server

Build Status: Travis Build Status: Circle CI Coverage Status

Static server that hosts Firefox Account sign up, sign in, email verification, etc. flows.


Quick Start

Clone the repository, make sure you have required prerequisites installed. Run npm install and npm run start-remote. This will start a local fxa-content-server on http://127.0.0.1:3030 that works with remote Firefox Accounts servers.

If you want to install all Firefox Accounts servers locally follow the instructions on: fxa-local-dev to get a full development setup running. Please note that fxa-local-dev is the preferred way of contributing to Firefox Accounts.


Development Notes

Changes to stylesheets, scripts and templates

Any changes made to the css resources, scripts or the template files will automatically be reflected on page refresh.


Testing

Prerequisites

Setup

To run tests locally with Selenium:

npm test

To change the default auth server edit server/config/*.json on your deployed instance.

{
  "fxaccount_url": "http://your.auth.server.here.org"
}

Note that testing with Selenium via Docker does not work at present, so all testing must be carried out via your normal operating system's npm & Java tooling.


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 ESLint, Sass-lint, amdcheck and JSONLint 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


License

MPL 2.0