From a7e7f7fdd2a9d38921476d57f305c9cd4459a556 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 18 Sep 2017 11:40:41 +0200 Subject: Avoid storing the password in the configuration The password (or any other secret), is now cached in the client process (in-memory only), and delivered to the resource via command. The resource avoids doing any operations against the source until the secret is available. --- examples/dummyresource/resourcefactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/dummyresource') diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index dffdfc9..f3c8be2 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp @@ -50,7 +50,7 @@ class DummySynchronizer : public Sink::Synchronizer { DummySynchronizer(const Sink::ResourceContext &context) : Sink::Synchronizer(context) { - + setSecret("dummy"); } Sink::ApplicationDomain::Event::Ptr createEvent(const QByteArray &ridBuffer, const QMap &data) -- cgit v1.2.3