jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Notification: Provide login to WordPress.com link if not logged in

Open kraftbj opened this issue 12 years ago • 16 comments

If the user is not logged into WordPress.com when logged into the local Jetpack site, clicking on the Notifications bubble loads a "loading spinner" that will never resolve, since they aren't logged into WP.com.

If login cookie isn't present, we should provide a link to login to WP.com (or load a login form directly?).

kraftbj avatar Jun 09 '14 15:06 kraftbj

An iframe to login directly would be great!

blobaugh avatar Jun 12 '14 18:06 blobaugh

An iframe to log in may not be great, from a security perspective. We'd need to think about how an exploiter could reskin it to trick them into logging in to their wpcom account. cc: @mdawaffe

georgestephanis avatar Jun 12 '14 19:06 georgestephanis

Not excited about an iframe. A popup is OK, though, like we do for logged-out likes, the REST API follow button, etc.

mdawaffe avatar Jun 12 '14 22:06 mdawaffe

How would it feel if we simply displayed a message that said something like the following?

"Notifications are only available when logged into WordPress.com. Please login with those credentials in order to see all the things."

ping @kraftbj @georgestephanis @mdawaffe @blobaugh

dmsnell avatar Feb 25 '15 18:02 dmsnell

Where do they log in?

mdawaffe avatar Feb 25 '15 19:02 mdawaffe

I would imagine they would click "login with those credentials" and get the pop-up

samhotchkiss avatar Feb 26 '15 18:02 samhotchkiss

This came up in 2142489-t

richardmtl avatar Apr 09 '15 20:04 richardmtl

Confirming problem: The notes panel attempts to make the REST API call without sending the valid token, thus the response sends an "Authentication Required" message with a 200 code, so no error reported by the browser.

dmsnell avatar Apr 29 '15 14:04 dmsnell

Ideas from conversation in Slack:

  1. Check for the presence of the cookie
  2. Check in WordPress.com and pass over user info via xmlrpc with the rest of wpcom.getUser()
  3. Send notifications data over to Jetpack and display locally instead of in an iframe from WordPress.com

dmsnell avatar Jul 01 '15 14:07 dmsnell

Right now, since the notifications popup appears in the admin bar for everyone, folks can see their wp.com notifs without having their local account linked to JP.

Long-term, I think it makes sense to have the bubble used for the linked account to reduce confusion (people weirded out b/c their super-secret blog wp.com account's notifs were showing up in their work JP powered admin bar), but noting that this is a sizable UX change from current.

Perhaps, if linked user, display that account's notifs (using either the existing token from JP or one passed down) and if not linked, show via the cookie? Or is that just adding more confusion? Linked user alone?

kraftbj avatar Jul 03 '15 14:07 kraftbj

Also encountered this in 2622445-t

Would be very nice to at least show a friendly message.

rickybanister avatar Apr 12 '16 16:04 rickybanister

A couple of details to help clarify:

If you are only logged into Jetpack, you'll see the notifications toolbar icon:

screen shot 2018-03-27 at 3 33 23 pm

if you click it, you'll see:

screen shot 2018-03-27 at 3 33 43 pm

and can note a 403 error in the console:

screen shot 2018-03-27 at 3 34 06 pm

beaulebens avatar Mar 27 '18 21:03 beaulebens

The other variation of the toolbar (core toolbar, with notifications icon) looks like this:

screen shot 2018-03-27 at 3 41 22 pm

and shows the same panel + spinner if you're not logged into WP.com.

beaulebens avatar Mar 27 '18 21:03 beaulebens

A button to login would be nice as a short term measure.

Longer term I would love to do more to group together SSO, the WordPress.com toolbar, WordPress.com, and the remote site. That would preclude this scenario from happening. If you are logged into one you're logged into the other.

rickybanister avatar Mar 28 '18 19:03 rickybanister

This issue persists as of Jetpack 7.8. Also tested with 7.9-alpha

chickenn00dle avatar Oct 24 '19 22:10 chickenn00dle

This issue has come up again in internal testing: p8oabR-QB-p2#comment-6211.

Removing the notifications icon completely for users who aren't connected to WordPress.com could also work.

coder-karen avatar May 02 '22 11:05 coder-karen