From 2a70ef5559de527dd30d96131774022c80ac9044 Mon Sep 17 00:00:00 2001 From: Douglas DUTEIL Date: Fri, 22 Dec 2023 10:35:45 +0100 Subject: [PATCH] chore: raph suggestion --- .env | 8 ++++++++ README.md | 6 +++--- index.ts | 3 ++- tsconfig.json | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 4d982c0..1aed835 100644 --- a/.env +++ b/.env @@ -1,4 +1,12 @@ +CALLBACK_URL: /login-callback HOST: http://localhost:3000 +LOGIN_HINT: "" MCP_CLIENT_ID: client_id MCP_CLIENT_SECRET: client_secret +MCP_ID_TOKEN_SIGNED_RESPONSE_ALG: RS256 MCP_PROVIDER: https://app-test.moncomptepro.beta.gouv.fr/ +MCP_SCOPES: "openid email profile organization" +MCP_USERINFO_SIGNED_RESPONSE_ALG: "" +PORT: 3000 +SITE_TITLE: "Bonjour monde !" +STYLESHEET_URL: https://unpkg.com/bamboo.css diff --git a/README.md b/README.md index 059b5b4..7cb130f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This tool is full configured using environment variables. Pull the image: ``` -docker pull rdubigny/moncomptepro-test-client +docker pull ghcr.io/betagouv/moncomptepro-test-client ``` Run the container: @@ -24,7 +24,7 @@ Run the container: docker run -d --rm \ -p 3000:3000 \ -e PORT=3000 \ -rdubigny/moncomptepro-test-client +ghcr.io/betagouv/moncomptepro-test-client ``` ## Run it with Docker Compose @@ -36,7 +36,7 @@ version: "3.5" services: oidc-test-client: - image: rdubigny/moncomptepro-test-client + image: ghcr.io/betagouv/moncomptepro-test-client ports: - 3000:3000 environment: diff --git a/index.ts b/index.ts index 84831ca..216a8b8 100644 --- a/index.ts +++ b/index.ts @@ -29,7 +29,7 @@ const env = z MCP_SCOPES: z.string().default("openid email profile organization"), MCP_USERINFO_SIGNED_RESPONSE_ALG: z.string().optional(), PORT: z.coerce.number().default(3000), - SITE_TITLE: z.string().default("Bonjour mondeĀ !"), + SITE_TITLE: z.string().default("Bonjour monde !"), STYLESHEET_URL: z.string().default("https://unpkg.com/bamboo.css"), }) .parse(process_env); @@ -55,6 +55,7 @@ interface Session_Context extends Env { }; }; } + const hono = new Hono(); // diff --git a/tsconfig.json b/tsconfig.json index 8089dd4..57886a0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,5 +3,5 @@ "compilerOptions": { "verbatimModuleSyntax": true }, - "files": ["./index.ts", "./views/index.ts"] + "files": ["./index.ts"] }