Add oidc-provider-mock dev setup with docker-compose and dotenvy

- docker-compose.yml runs oidc-provider-mock on :9400 with predefined
  alice/bob users carrying preferred_username claims
- .env auto-loaded via dotenvy for zero-config local dev
- index route now redirects unauthenticated users to the login flow
  instead of returning 401
This commit is contained in:
Opencode Agent
2026-07-30 23:23:59 +00:00
parent 635b685bc9
commit 69dcd84d0b
5 changed files with 43 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
services:
oidc:
image: ghcr.io/geigerzaehler/oidc-provider-mock:latest
ports:
- "9400:9400"
command:
- --user-claims
- '{"sub": "alice", "preferred_username": "alice", "email": "alice@example.com", "name": "Alice"}'
- --user-claims
- '{"sub": "bob", "preferred_username": "bob", "email": "bob@example.com", "name": "Bob"}'