Caddy module to require at-proto authentication and restrict routes to DIDs
End-to-End Testing#
This directory contains a Caddyfile configuration to test both "Standalone" and "Auth Hub" modes locally.
Usage#
-
Build the Caddy binary:
go build -o caddy ../cmd/caddy -
Run Caddy:
./caddy run --config Caddyfile --adapter caddyfile -
Test in Browser:
-
Standalone Mode: Open http://localhost:8081.
- Expected: Redirect to
/login.
- Expected: Redirect to
-
Auth Hub Mode: Open http://localhost:8083.
- Expected: Redirect to
http://localhost:8082/login(The Portal).
- Expected: Redirect to
-