From c966ca8115273d9799bcf346e77a374c7e0caa01 Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Wed, 13 Dec 2023 16:56:34 +0100 Subject: [PATCH] chore(deps): update dependencies (#1) --- README.md | 13 ++++++++++--- package-lock.json | 44 ++++++++++++++++++++++---------------------- package.json | 6 +++--- 3 files changed, 35 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index cdad1b8..059b5b4 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,13 @@ This tool is full configured using environment variables. ## Run it with Docker Pull the image: + ``` docker pull rdubigny/moncomptepro-test-client ``` Run the container: + ``` docker run -d --rm \ -p 3000:3000 \ @@ -28,8 +30,9 @@ rdubigny/moncomptepro-test-client ## Run it with Docker Compose In `docker-compose.yml`: + ```yaml -version: '3.5' +version: "3.5" services: oidc-test-client: @@ -41,6 +44,7 @@ services: ``` Run the container: + ``` docker-compose up ``` @@ -48,11 +52,13 @@ docker-compose up ## Run it with Node.js v16 or higher Install the dependencies: + ``` npm i ``` Run the server: + ``` npm start ``` @@ -62,11 +68,12 @@ npm start Available env variables and there default values are listed [here](.env). You can use the app-test.moncomptepro.beta.gouv.fr oidc provider with the following client configuration: + ```yaml client_id: client_id client_secret: client_secret -login_callbacks: ['http://localhost:3000/login-callback'] -logout_callbacks: ['http://localhost:3000/'] +login_callbacks: ["http://localhost:3000/login-callback"] +logout_callbacks: ["http://localhost:3000/"] authorized_scopes: openid email profile organization ``` diff --git a/package-lock.json b/package-lock.json index 8213ace..88173fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,10 +14,10 @@ "ejs": "^3.1.9", "express": "^4.18.2", "morgan": "^1.10.0", - "openid-client": "^5.4.3" + "openid-client": "^5.6.1" }, "devDependencies": { - "prettier": "^3.0.3" + "prettier": "^3.1.1" } }, "node_modules/accepts": { @@ -530,9 +530,9 @@ } }, "node_modules/jose": { - "version": "4.14.5", - "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.5.tgz", - "integrity": "sha512-56ns1XlSI8d5V0t7hilPu8dMbE4YIwrTJU6e7bV1Abyu6oel4tSc4YmD742MoWV3U+vn7O0WlKpinzu2DP0HWw==", + "version": "4.15.4", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.4.tgz", + "integrity": "sha512-W+oqK4H+r5sITxfxpSU+MMdr/YSWGvgZMQDIsNoBDGGy4i7GBPTtvFKibQzW06n3U3TqHjhvBJsirShsEJ6eeQ==", "funding": { "url": "https://github.com/sponsors/panva" } @@ -704,11 +704,11 @@ } }, "node_modules/openid-client": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.4.3.tgz", - "integrity": "sha512-sVQOvjsT/sbSfYsQI/9liWQGVZH/Pp3rrtlGEwgk/bbHfrUDZ24DN57lAagIwFtuEu+FM9Ev7r85s8S/yPjimQ==", + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.6.1.tgz", + "integrity": "sha512-PtrWsY+dXg6y8mtMPyL/namZSYVz8pjXz3yJiBNZsEdCnu9miHLB4ELVC85WvneMKo2Rg62Ay7NkuCpM0bgiLQ==", "dependencies": { - "jose": "^4.14.4", + "jose": "^4.15.1", "lru-cache": "^6.0.0", "object-hash": "^2.2.0", "oidc-token-hash": "^5.0.3" @@ -731,9 +731,9 @@ "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" }, "node_modules/prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -1349,9 +1349,9 @@ } }, "jose": { - "version": "4.14.5", - "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.5.tgz", - "integrity": "sha512-56ns1XlSI8d5V0t7hilPu8dMbE4YIwrTJU6e7bV1Abyu6oel4tSc4YmD742MoWV3U+vn7O0WlKpinzu2DP0HWw==" + "version": "4.15.4", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.4.tgz", + "integrity": "sha512-W+oqK4H+r5sITxfxpSU+MMdr/YSWGvgZMQDIsNoBDGGy4i7GBPTtvFKibQzW06n3U3TqHjhvBJsirShsEJ6eeQ==" }, "keygrip": { "version": "1.1.0", @@ -1471,11 +1471,11 @@ "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" }, "openid-client": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.4.3.tgz", - "integrity": "sha512-sVQOvjsT/sbSfYsQI/9liWQGVZH/Pp3rrtlGEwgk/bbHfrUDZ24DN57lAagIwFtuEu+FM9Ev7r85s8S/yPjimQ==", + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.6.1.tgz", + "integrity": "sha512-PtrWsY+dXg6y8mtMPyL/namZSYVz8pjXz3yJiBNZsEdCnu9miHLB4ELVC85WvneMKo2Rg62Ay7NkuCpM0bgiLQ==", "requires": { - "jose": "^4.14.4", + "jose": "^4.15.1", "lru-cache": "^6.0.0", "object-hash": "^2.2.0", "oidc-token-hash": "^5.0.3" @@ -1492,9 +1492,9 @@ "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" }, "prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "dev": true }, "proxy-addr": { diff --git a/package.json b/package.json index 2de1e6e..5054011 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "description": "This is a minimal, nodeJS-based MonComptePro client, to be used for end-to-end testing.", "main": "index.js", + "type": "module", "scripts": { "start": "node .", "test": "echo \"Error: no test specified\" && exit 1" @@ -23,11 +24,10 @@ "ejs": "^3.1.9", "express": "^4.18.2", "morgan": "^1.10.0", - "openid-client": "^5.4.3" + "openid-client": "^5.6.1" }, - "type": "module", "devDependencies": { - "prettier": "^3.0.3" + "prettier": "^3.1.1" }, "engines": { "node": "20",