mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-15 23:32:46 +00:00
Support mutual TLS as an authentication strategy alongside JWT. The server accepts both auth methods on the same port — mTLS if a client cert is presented, JWT via Bearer header otherwise. Config changes: - Replace `authentication_strategy` (singular) with `authentication_strategies` (list of "jwt" and/or "mtls") - Add `[api.tls]` section for cert, key, and CA paths New files: tls.rs (rustls ServerConfig builder) Modified: server_config.rs, jwt_auth.rs, serve.rs, lib.rs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||