ArduinoCloudProviderExamples icon indicating copy to clipboard operation
ArduinoCloudProviderExamples copied to clipboard

Google Cloud IOT Core Fails re negotiate JWT

Open fabltd opened this issue 5 years ago • 2 comments

Hi

When the JWT token expires the connection is dropped by Google. The connection is not established. Steps to replicate - reduce the JWT EXP time to 10 mins. The Token will expire and communication with IOT core will stop.

Is there a connection watchdog to restart the connection of poll fails to get a response?

fabltd avatar Mar 11 '20 14:03 fabltd

Any update on this ? Is this project still monitored??

fabltd avatar Mar 13 '20 14:03 fabltd

If you mean "the JWT token is only valid between IAT and EXP", this is an expected behaviour and a built-in security feature. See Google's documentation at https://cloud.google.com/iot/docs/concepts/device-security.
The connection is closed when the JWT expires (after accounting for the allowed clock drift).

adamrosebrock avatar Dec 30 '20 18:12 adamrosebrock