mirror of
https://github.com/orbien-org/orbien.git
synced 2026-09-22 00:01:31 +00:00
fix: improve login authentication against digest replay and stale timestamps (#24)
Add a ±180s timestamp window and in-process digest replay cache; warn when auth.token is empty
This commit is contained in:
+3
@@ -58,6 +58,9 @@ public final class OrbienClient implements AutoCloseable {
|
||||
started.set(false);
|
||||
throw new IllegalStateException("tcpMux is not supported; set tcpMux=false on client and server");
|
||||
}
|
||||
if (config.getToken() == null || config.getToken().isEmpty()) {
|
||||
log.warn("auth.token is empty; authentication is disabled");
|
||||
}
|
||||
|
||||
group = new NioEventLoopGroup();
|
||||
CompletableFuture<String> loginFuture = new CompletableFuture<>();
|
||||
|
||||
Reference in New Issue
Block a user