Firefox Accounts Content Server
Switch branches/tags
2fa-push add-additional-email add-security-history-timeline all-hands-connect-another-app amp-rfk dockerpush-fix-run-npm-ls-production dockerpush.tags-not-building-118 dockerpush.test-cdn-deploy exp-latest feature.account-recovery-screens feature.amr-info feature.iframeless feature.key-jwk-v5 feature.moar-key-stretching feature.oauth-instance-metadata feature.pairsona feature.sandvich feature.settingsgrid feature.verified-session-cookie fix-run-npm-ls-production format-complete-password-reset hmr-hot-module-replacement i4984 i5856 i6561 i6658-dont-bypass-password-prompt issue-5434 issue-5651-remove-fx-desktop-v1 issue-6722 madness-mode master passwordhint-v10 pb/all-hands-connect-another-service phil/5553 phil/5836 recovery-key-32-length reference-browser-oldsync-scope remove-confusing-message request-teamcity ryanfeeley-qr-code-dimensions test-node-10 totp-100-train-113 train-01 train-02 train-03 train-04 train-05 train-06 train-07 train-08 train-10 train-11 train-12 train-13 train-14 train-15 train-16 train-17 train-18 train-19 train-20 train-21 train-22 train-23 train-24 train-25 train-26 train-27 train-28 train-29 train-30 train-31 train-32 train-33 train-34 train-35 train-36 train-37 train-38 train-39 train-40 train-41 train-42 train-42.1 train-42.2 train-43 train-44 train-45 train-46 train-47 train-48 train-49 train-50 train-51 train-52 train-53 train-54 train-55 train-56 train-57 train-58 train-61 train-62 train-63 train-64 train-66 train-67 train-68 train-69 train-70 train-71 train-72 train-73 train-74 train-75 train-76 train-77 train-78 train-79 train-81 train-82 train-83 train-85 train-86 train-87 train-88 train-89 train-90 train-91 train-92 train-93 train-94 train-95 train-96 train-97 train-99 train-100 train-101 train-102 train-105 train-106 train-107 train-108 train-109 train-110 train-111 train-112 train-113 train-114 train-115 train-116 train-117 train-118 train-119 train-120 train-121 train-122 train-123 train-124 train-125 train-126 train-127 trian-65 typescript-playground v0.64.1-branch v0.65.0-branch
Nothing to show
Clone or download
shane-tomlinson Merge pull request #6747 from mozilla/train-127
chore(release): Merge train-127 into master
Latest commit 40bc66e Dec 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci fix(ci): Remove sync-exec from CI dep installation Oct 29, 2018
app Merge pull request #6744 from mozilla/remove-confusing-message, r=@sh… Dec 11, 2018
docs refactor(mobile): Remove support for mob_ios_v1 and mob_android_v1 Nov 5, 2018
grunttasks fix(totp): Remove en-US from the TOTP SUMO link. Oct 29, 2018
locale refactor(deps): remove bower (#5915) r=@vbudhram Feb 15, 2018
scripts fix(scripts): make tls-shrink script portable Sep 27, 2018
server Merge pull request #6734 from mozilla/issue-6722, r=@shane-tomlinson, @… Dec 10, 2018
tests Merge pull request #6734 from mozilla/issue-6722, r=@shane-tomlinson, @… Dec 10, 2018
.editorconfig feat(forms): replace our password advice with responsive message (#5940 Mar 3, 2018
.eslintignore refactor(deps): remove bower (#5915) r=@vbudhram Feb 15, 2018
.eslintrc feat(webpack): upgrade to webpack 4 r=@vladikoff Jul 25, 2018
.gitattributes Generated basic Yeoman project. Dec 4, 2013
.gitignore feat(css): build CSS using webpack instead of grunt-sass (#6351) r=@v… Jul 30, 2018
.htmllintrc chore(htmllint): add htmllint to repo Jul 13, 2015
.nsprc fix(deps): rewrap deps, add exceptions for convict, grunt-z-schema, g… Oct 30, 2018
.nvmrc chore(npm): update nvmrc to node 8 Apr 24, 2018
.sass-lint.yml feat(sass): SASS lint warnings are now errors. (#5700) r=@vladikoff Nov 10, 2017
.travis.yml fix(deps): add filtered npm audit Oct 30, 2018
AUTHORS Release v1.126.0 Nov 28, 2018
CHANGELOG.md Release v1.127.0 Dec 11, 2018
CONTRIBUTING.md refactor(deps): remove bower (#5915) r=@vbudhram Feb 15, 2018
Dockerfile-build fix(docker): let's do only one npm version override Jun 13, 2018
Gruntfile.js chore(dependencies): upgrade away from deprecated mozlog usage (#5349)… Aug 11, 2017
LICENSE Add MPL 2.0 license file. Aug 18, 2014
README.md feat(css): build CSS using webpack instead of grunt-sass (#6351) r=@v… Jul 30, 2018
npm-shrinkwrap.json fix(tests): update from sinon reset to resetHistory Nov 27, 2018
package.json Release v1.127.0 Dec 11, 2018
webpack.config.js feat(router): Groundwork to load views on demand. Sep 7, 2018

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