diff options
| author | tv <tv@krebsco.de> | 2026-11-07 22:35:09 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-07 22:35:09 +0100 |
| commit | ec70060ae5fa665953741da921e28031b56bc5e0 (patch) | |
| tree | cd1f6f5ae90d3ad87b9667da20d6e85b62394ab1 /src/simtest | |
| parent | eed8f86912f53f549d9f9068f9bdf2c8e23aa0f7 (diff) | |
auth: logging in, and tokens as bearers
POST /auth/login (by htpasswd or the proxy), /auth/refresh,
/auth/logout, GET /auth/whoami; every request may bring
Authorization: Bearer instead of a password. --token-lifetime and
--session-lifetime.
Auth plan M2.
Diffstat (limited to 'src/simtest')
| -rw-r--r-- | src/simtest/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs index 5a202b5..c68fe57 100644 --- a/src/simtest/mod.rs +++ b/src/simtest/mod.rs @@ -213,6 +213,9 @@ impl Sim { swarm_key: None, protocol_writers: HashSet::new(), first_users: Vec::new(), + node_key: None, + token_lifetime: Duration::from_secs(3600), + session_lifetime: Duration::from_secs(86400), files: Arc::new(Files::default()), state_file: None, document_file: None, |
