Ihor Koliasa - Dear group members, please tell ...
Dear group members, please tell me where exactly JSON Web Token (JWT) records are stored on the SignalK server?
11 Replies
They are not stored on the server
In which folder, in which file?
They are not stored on the server
where?)
lol
Do I need to say it again?
they are only stored on the client
JWT = JSON object, encrypted or signed (usually HMAC).
The server does not store the token — it simply checks the signature (by secretKey). Where exactly is the file that checks the signature?
If the token is valid and not expired — access is allowed.
That is, if the key is generated, does it remain accessible forever until I physically delete the user?
depends on how the token is created
I am not inclined to discuss these details with you
if you have an issue, let's talk about that
No problems with the keys, I was wondering where they are physically stored, if the authentication level is at the client level then this is a good protection method, if I want to generate a permanent key, I will just specify a period of 100 years and that's it. Good job, I was wondering where exactly the tokens are stored if they are not on the server, then there are no more questions now.
authentication is not at the "client level"
I am trying to send data from the magnetometer to the server in different formats, but the server only displays it in rad
void sendSignalKHeading(float deg) {
JsonDocument doc;
doc["context"] = "vessels.self";
JsonArray updates = doc.createNestedArray("updates");
JsonObject update = updates.add<JsonObject>();
update["timestamp"] = "2025-05-22T12:00:00.000Z";
JsonArray values = update.createNestedArray("values");
JsonObject val_heading = values.add<JsonObject>();
val_heading["path"] = "navigation.headingTrue";
val_heading["value"] = deg;
JsonObject val_degrees = values.add<JsonObject>();
val_degrees["path"] = "navigation.headingTrue.degrees";
val_degrees["value"] = deg;
JsonObject val_radians = values.add<JsonObject>();
val_radians["path"] = "navigation.headingTrue.radians";
val_radians["value"] = deg * M_PI / 180;
JsonObject val_gradians = values.add<JsonObject>();
val_gradians["path"] = "navigation.headingTrue.gradians";
val_gradians["value"] = deg * 400 / 360;
String json;
serializeJson(doc, json);
webSocket.sendTXT(json);
}
Can you tell me where I can see in which formats the units should be sent so that the server receives them correctly, and also where I can view the list of values so as not to ask similar questions in the future. Thank you
