re-add token auth

This commit is contained in:
Iuri Matias
2026-06-05 14:48:16 -04:00
parent b7eb07efed
commit 124fd51860
8 changed files with 400 additions and 1 deletions
+1
View File
@@ -66,6 +66,7 @@ protected:
TEST_F(ModuleProxyTest, CallRemoteMethodDispatchesToProvider)
{
ModuleProxy proxy(m_provider);
proxy.saveToken("caller", "token"); // authorize the caller's token
QVariant r = proxy.callRemoteMethod("token", "myMethod", {QVariant(1)});
EXPECT_EQ(r.toInt(), 99);
EXPECT_EQ(m_provider->lastMethodCalled, "myMethod");