Skip to content

Jetpack: secrets expiration #6879

@johnHackworth

Description

@johnHackworth

There's a problem that is causing a recurrent error showing up in calypso's jetpack stats. We are generating the authorization-related secrets when the user visit the non-connected page. So if the user waits more than 10 minutes before they click on the "connect" button, or if they, for example, open the page again in another tab, and then click on connect on the first one, we are starting the authorization flow with an already outdated secret (which have been overwritten by another one).

How to replicate:

a)

  1. Get an unconnected site and open the jetpack tab.
  2. Wait 10 minutes
  3. Connect. You will get a connection error, then calypso will reattempt the connection and it should be successful on a second try
    b)
  4. Get an unconnected site and open the jetpack tab.
  5. Open the jetpack tab in a different tab
  6. Go back to the first tab and connect. You will get a connection error, then calypso will reattempt the connection and it should be successful on a second try

Metadata

Metadata

Assignees

Labels

BugWhen a feature is broken and / or not performing as intended[Feature] Manage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions