Skip to content

numerique-gouv/proconnect-identite-usability-test-client

 
 

Repository files navigation

ProConnect Identité Usability Test Client

This is a minimal, nodeJS-based ProConnect client, to be used for end-to-end testing.

It uses the https://github.com/panva/node-openid-client Library for the actual OIDC Logic.

This tool can be used to test the traditional Authorization Code Flow.

It also uses the select_organization & update_userinfo ProConnect prompts (available only on ProConnect Identité).

This tool is fully configured using environment variables.

Run it with Node.js v16 or higher

Install the dependencies:

npm i

Run the server:

npm start

Configuration

Available env variables for ProConnect Identité are listed here.

Available env variables for ProConnect Fédération are listed here.

You can use the app-sandbox.moncomptepro.beta.gouv.fr oidc provider with the following client configuration:

client_id: client_id
client_secret: client_secret
login_callbacks: ["http://localhost:3000/login-callback"]
logout_callbacks: ["http://localhost:3000/"]
authorized_scopes: openid email profile organization

More clients are available at: https://github.com/numerique-gouv/moncomptepro/blob/master/scripts/fixtures.sql

Run Cypress test

cd e2e
npm i
npm test

About

This is a minimal, nodeJS-based ProConnect client, to be used for user testing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • EJS 52.7%
  • JavaScript 30.5%
  • TypeScript 12.1%
  • Gherkin 3.1%
  • Dockerfile 1.6%