Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/france-connect/identity-provider-example
An example of an Identity Provider for FranceConnect
https://github.com/france-connect/identity-provider-example
Last synced: 4 months ago
JSON representation
An example of an Identity Provider for FranceConnect
- Host: GitHub
- URL: https://github.com/france-connect/identity-provider-example
- Owner: france-connect
- Created: 2018-11-12T14:08:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T13:50:49.000Z (5 months ago)
- Last Synced: 2024-08-07T18:58:43.972Z (4 months ago)
- Language: JavaScript
- Homepage: https://identity-provider-example.herokuapp.com/
- Size: 1 MB
- Stars: 13
- Watchers: 10
- Forks: 160
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# identity-provider-example
An implementation example of a FranceConnect Identity Provider.
- [General documentation](https://partenaires.franceconnect.gouv.fr/fcp/fournisseur-identite)
- the code on this repo is automatically deployed as the ["Exemple" identity provider](https://identity-provider-example.herokuapp.com/)## Prerequisites
This server use [nodejs version 12.16](https://nodejs.org/en/download/).
## Install
```bash
git clone [email protected]:france-connect/identity-provider-example.git
cd identity-provider-example
npm install
```## Run the app
```bash
npm start
```Optional: run it in debug mode:
```bash
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](/src/public/identity-provider-button.jpg)](http://localhost:5000/user/authorize?state=c27742978ca0a599b9b0c8aac6075acd741f7885815e4b3b101298930d3ca690&nonce=71e1dc73cd58414cfe889c33e0862a1da1cf7faf2e236d8d4f6ec4ae8310703f&response_type=code&client_id=09a1a257648c1742c74d6a3d84b31943&redirect_uri=https%3A%2F%2Ffcp.integ01.dev-franceconnect.fr%2Foidc_callback&scope=openid%20profile%20email%20address%20phone%20birth)
You should be redirected to your local server.
You can use the following test credentials : test | 123
More credentials are available [here](/database.csv).
As your local server is not registered in FranceConnect, you will be redirected to a FranceConnect error page after successful login.
## Run the Tests
```bash
npm test
```