Skip to content

Google Cloud IOT Core Fails re negotiate JWT #12

Open
@fabltd

Description

@fabltd

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?

Activity

fabltd

fabltd commented on Mar 13, 2020

@fabltd
Author
adamrosebrock

adamrosebrock commented on Dec 30, 2020

@adamrosebrock

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @fabltd@per1234@adamrosebrock

        Issue actions

          Google Cloud IOT Core Fails re negotiate JWT · Issue #12 · arduino/ArduinoCloudProviderExamples