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
+6
View File
@@ -43,6 +43,12 @@ signals:
void eventResponse(const QString& eventName, const QVariantList& data);
private:
// Returns true only when authToken matches a token THIS module has issued
// (via saveToken / informModuleToken). Empty/unknown tokens are rejected.
// Comparison is constant-time and never early-outs, so neither a correct
// prefix nor the number of issued tokens leaks through timing.
bool isAuthorized(const QString& authToken) const;
LogosProviderObject* m_provider;
QHash<QString, QString> m_tokens;
};