DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
vladikoff 48646146e3 switching to local idp 2013-09-17 12:54:40 -04:00
scripts refactor certifier process spawning 2013-08-22 12:55:11 -07:00
server include user id in browser payload - fixes #28 2013-09-09 17:37:20 -07:00
static update gherkin 2013-09-11 16:50:25 -07:00
tests switching to local idp 2013-09-17 12:54:40 -04:00
.awsbox.json set up awsbox 2013-08-22 13:43:50 -07:00
.gitignore Adding tests 2013-08-29 18:01:51 -07:00
.travis.yml Adding tests for create accounts and login forms 2013-08-30 15:04:39 -07:00
README.md updated README.md to include prereqs section 2013-09-13 15:13:59 -07:00
package.json Adding tests for create accounts and login forms 2013-08-30 15:04:39 -07:00

README.md

Firefox Accounts Persona Bridge

Build Status

This is a Node.js server which implements the Persona identity provider (IdP) protocol. It allows users to sign in to Firefox Accounts (aka PICL). It consumes the REST API which PICL provides.

Prerequisites

Development Setup

npm install
npm start

Testing

  • Run in the background: java -jar selenium-server-standalone-2.35.0.jar

  • TDD: npm test

  • Functional: npm run-script test-functional

  • Server test: npm run-script test-server (Selenium server not required)

Persona Bridge Setup

One Time Setup

cp server/config/local.json-dist server/config/local.json

Running the service

Issuer determines the hostname and the environmentPORT variable the port.

PORT=3030 npm start

The easiest way to develop, is to run a local browserid instance and SHIMMED_PRIMARIES:

You have to save the /.well-known/browserid to the file system:

curl http://localhost:3030/.well-known/browserid > /tmp/fxwellknown

And then start up browserid:

SHIMMED_PRIMARIES="dev.fxaccounts.mozilla.org|http://127.0.0.1:3030|/tmp/fxwellknown"  npm start

Now you can type foo@dev.fxaccounts.mozilla.org in the test dialog at http://127.0.0.1:10001/. No DNS or /etc/hosts hacks are needed.

Password is 'asdf'.

Configuration

The default idp server is http://idp.dev.lcip.org. To change this, edit config.json on your deployed instance.

{
  'fxaccount_url': 'http://your.idp.here.org'
}