feat(admin/user): show users auth method + add cli to recover broken opaque login

This commit is contained in:
Edouard Vanbelle
2026-08-05 21:12:51 +02:00
parent c4bf2568ba
commit 84a1b0e005
14 changed files with 527 additions and 81 deletions
@@ -92,7 +92,7 @@ impl OpaqueService {
ErrorKind::InternalError,
"opaque",
"OXICLOUD_AUTH_OPAQUE_SERVER_SETUP is required when OPAQUE is enabled — \
generate one with `oxicloud opaque-setup` and persist it in the env",
generate one with `oxicloud-cli opaque setup` and persist it in the env",
)
})?;
let setup = decode_server_setup(setup_b64)?;
@@ -256,7 +256,10 @@ mod tests {
};
let err = OpaqueService::from_config(cfg).expect_err("must reject missing setup");
assert_eq!(err.kind, ErrorKind::InternalError);
assert!(err.to_string().contains("OXICLOUD_AUTH_OPAQUE_SERVER_SETUP"));
assert!(
err.to_string()
.contains("OXICLOUD_AUTH_OPAQUE_SERVER_SETUP")
);
}
#[test]