An implementation example of the FranceConnect button on a service provider's website.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 42a1d07 Dec 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
bin first commit Nov 9, 2018
controllers more comprehensive callback controller names Nov 22, 2018
helpers
public/img use 2 separate button for authent & get data + global redesign Nov 14, 2018
test
views
.babelrc
.eslintrc.js
.gitignore first commit Nov 9, 2018
README.md typo in README.md Nov 16, 2018
app.js more comprehensive callback controller names Nov 22, 2018
app.json
config.js
package-lock.json first commit Nov 9, 2018
package.json first commit Nov 9, 2018

README.md

Service-providers-example

An implementation example of the FranceConnect button on a service provider's website. There are two uses for the FranceConnect button in this example: 1) identify the user, 2) get their consent on personnal data exchange.

Prerequisites

This server use nodejs version 8.12.

Install

git clone git@github.com:france-connect/service-provider-example.git
cd service-provider-example
npm install

Run the app

npm start

Use the app

When you start the app, the demo is available at : http://localhost:3000.

To start the France Connect authentication process, click on the France Connect button.

You will be prompted to choose an identity provider. Choose 'identity-provider-example'.

You can use the following test credentials : 3_melaine | 123

More credentials are available here.

Run the app with a local Data Provider (optional)

By default the app will interact with a Data Provider available online.

You can use a local instance of this Data Provider instead:

  1. Install and run this Data Provider (go through the optional connected installation)
  2. Restart this Service Provider with FD_URL=http://localhost:4000 npm start

Run the Tests

npm test