Open kwight opened 5 years ago
I was able to reproduce it with the steps outlined in https://github.com/Automattic/jetpack/pull/12215#pullrequestreview-236058316. I wonder if this could be fixed in Jetpack's and WP.com's Jetpack_SSO::build_sso(_login)_url()
by passing the frame-nonce
argument back and forth.
I just don't know how to test it without proxy-ing the API 🙂
But that's why it's failing, we don't have a frame nonce to verify.
In testing Gutenframe attempts to handle logged out users on the Jetpack side, a few edge cases were discovered that should be addressed.
This tests really well now, with both Atomic and Jetpack sites, and admin and non-admin users (also SSO and without). I was able to find a particular test user of mine that always hits a server (not WP) 401 on a certain v1 Atomic site; however, the same user works on other Atomic sites, and other users work on that Atomic site, so I have no explanation of what edge-case I'm hitting, or if it's an issue non-a11s will see in production. Considering the positive testing of everything else, I wouldn't want it to be a blocker.
I also found an edge case that causes the user to hit this wall:
If a user:
See https://github.com/Automattic/jetpack/pull/12215 for details.