Skip to content

Commit

Permalink
chore(deps): update dependencies (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil authored Dec 13, 2023
1 parent acd9938 commit c966ca8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 28 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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:
Expand All @@ -41,18 +44,21 @@ services:
```
Run the container:
```
docker-compose up
```

## Run it with Node.js v16 or higher

Install the dependencies:

```
npm i
```

Run the server:

```
npm start
```
Expand All @@ -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
```
Expand Down
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit c966ca8

Please sign in to comment.