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
+4 -1
View File
@@ -273,7 +273,10 @@ QVariant QtProviderObject::callMethod(const QString& methodName, const QVariantL
return QVariant(getMethods());
}
// Auth-token validation (mirrors the old ModuleProxy logic)
// No auth check here by design: this adapter has no token parameter and is
// only ever reached through ModuleProxy::callRemoteMethod, which authorizes
// the caller's token before dispatching (see ModuleProxy::isAuthorized).
// The checks below are sanity guards on the wrapped plugin, not authz.
PluginInterface* pluginInterface = qobject_cast<PluginInterface*>(m_module);
if (!pluginInterface) {
qWarning() << "[LogosProviderObject] QtProviderObject::callMethod: module is not a PluginInterface";