Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Client Secret gets stored in Agent

Michael Rademakera418ff8b517e
diff --git a/agent/src/main/java/org/openremote/agent/protocol/event/ClientEventProtocol.java b/agent/src/main/java/org/openremote/agent/protocol/event/ClientEventProtocol.java
index f91a7ef58..2811d0dc3 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/event/ClientEventProtocol.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/event/ClientEventProtocol.java
@@ -77,6 +77,7 @@ public class ClientEventProtocol extends AbstractProtocol<ClientEventAgent, Agen
);
protocolClientEventService.addClientCredentials(clientCredentials);
+ updateAgentAttribute(new AttributeState(agent.getId(), ClientEventAgent.CLIENT_SECRET.getName(), clientSecret));
}
@Override