Skip to content
An example of an Identity Provider for FranceConnect
Branch: master
Clone or download
Latest commit 11d0fa0 May 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci add circleci configuration Nov 12, 2018
bin Use transpiled files in production Apr 23, 2019
data add ANTS identities May 20, 2019
src add ANTS identities May 20, 2019
test/services Split server start and add transpilation Apr 18, 2019
.babelrc Comply to code convention/linter Apr 18, 2019
.eslintrc.js major refactor + complete redesign Jan 8, 2019
.gitignore add ANTS identities May 20, 2019
.huskyrc Remove useless newline Apr 23, 2019
README.md Update README.md May 13, 2019
database.csv Update database.csv May 7, 2019
package-lock.json
package.json NPM version bump 🚀 Apr 23, 2019

README.md

identity-provider-example

An implementation example of a FranceConnect Identity Provider.

Prerequisites

This server use nodejs version 8.12.

Install

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

Run the app

npm start

Optional: run it in debug mode:

DEBUG=oidc-provider:* npm start

Use the app

When you start the app, the server is available at : http://localhost:5000.

To emulate a click on an identity provider on /api/v1/authorize page of franceconnect website click on the button below:

identity-provider-button

You should be redirected to your local server.

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

More credentials are available here.

As your local server is not registered in FranceConnect, you will be redirected to a FranceConnect error page after successful login.

Run the Tests

npm test
You can’t perform that action at this time.