From 08e573d63c6fae9f60aecb0d8e011a1e0bfadf1c Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 20 Apr 2026 14:11:18 +0200 Subject: [PATCH] Removed auth --- .vscode/tasks.json | 40 +++++++++ Components/Layout/NavMenu.razor | 23 +++-- Components/Pages/ChangePassword.razor | 20 +++++ Components/Pages/Login.razor | 20 +++++ Configuration/AppAuthOptions.cs | 12 +++ Dockerfile | 2 +- Dockerfile.playwright | 10 +++ Program.cs | 88 +++++++++++++++---- README.Docker.md | 15 ++++ .../Auth/DefaultAdminAuthenticationHandler.cs | 48 ++++++++++ appsettings.json | 5 ++ docker-compose.tests.yml | 10 +++ docker-compose.yml | 2 +- package.json | 10 +++ playwright.config.ts | 15 ++++ tests/playwright/auth-bypass.spec.ts | 33 +++++++ tests/playwright/health.spec.ts | 21 +++++ 17 files changed, 348 insertions(+), 26 deletions(-) create mode 100644 Configuration/AppAuthOptions.cs create mode 100644 Dockerfile.playwright create mode 100644 Services/Auth/DefaultAdminAuthenticationHandler.cs create mode 100644 docker-compose.tests.yml create mode 100644 package.json create mode 100644 playwright.config.ts create mode 100644 tests/playwright/auth-bypass.spec.ts create mode 100644 tests/playwright/health.spec.ts diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3edf94c..ef494e7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -68,6 +68,46 @@ "cwd": "${workspaceFolder}" }, "problemMatcher": [] + }, + { + "label": "WorkTracker: Docker Playwright Tests", + "type": "shell", + "command": "docker", + "args": [ + "compose", + "-f", + "docker-compose.yml", + "-f", + "docker-compose.tests.yml", + "up", + "--build", + "--abort-on-container-exit", + "--exit-code-from", + "playwright", + "playwright" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [] + }, + { + "label": "WorkTracker: Docker Playwright Down", + "type": "shell", + "command": "docker", + "args": [ + "compose", + "-f", + "docker-compose.yml", + "-f", + "docker-compose.tests.yml", + "down", + "--volumes" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [] } ] } \ No newline at end of file diff --git a/Components/Layout/NavMenu.razor b/Components/Layout/NavMenu.razor index 3ff3c9a..fe28638 100644 --- a/Components/Layout/NavMenu.razor +++ b/Components/Layout/NavMenu.razor @@ -1,4 +1,8 @@ -