Skip to content
An implementation example of the FranceConnect button on a service provider's website.
Branch: master
Clone or download
rdubigny Merge pull request #22 from france-connect/ADD_ID_ON_DATA_BTN
Add id on data btn for cypress test
Latest commit 44c6b8b May 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci add circleci config file Nov 12, 2018
bin first commit Nov 9, 2018
controllers eidas level choice for FS, access to data from home page (#21) Apr 16, 2019
helpers Ajout de la logique pour que les FS puissent rajouter un niveau eidas Apr 10, 2019
public/img eidas level choice for FS, access to data from home page (#21) Apr 16, 2019
test eidas level choice for FS, access to data from home page (#21) Apr 16, 2019
views Add warning message about the use of the get data button id May 10, 2019
.babelrc
.eslintrc.js disable default import eslint rule Jan 17, 2019
.gitignore first commit Nov 9, 2018
README.md add public key in README Apr 11, 2019
app.js eidas level choice for FS, access to data from home page (#21) Apr 16, 2019
app.json Add Heroku generated app.json Nov 28, 2018
config.js Update credentials with public client credentials Feb 19, 2019
package-lock.json add http client logger Jan 17, 2019
package.json Ajout de la logique pour que les FS puissent rajouter un niveau eidas Apr 10, 2019

README.md

service-provider-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

Run the linter

Run the linter with:

npm run lint

Public key for Franceconnect integration environment

This repository is shipped with public integration keys. It allow you to discover the application and start your tests without waiting for the validation of your request on https://signup.api.gouv.fr/franceconnect.

This key is for limited use and has no support from our team:

  • CLIENT_ID: '211286433e39cce01db448d80181bdfd005554b19cd51b3fe7943f6b3b86ab6e'
  • CLIENT_SECRET: '2791a731e6a59f56b6b4dd0d08c9b1f593b5f3658b9fd731cb24248e2669af4b'

The allowed callback URL with this key are listed bellow :

You can’t perform that action at this time.