Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSO: set option when someone sees a JITM helping them to discover SSO. #10979

Merged
merged 3 commits into from
Dec 18, 2018

Conversation

jeherve
Copy link
Member

@jeherve jeherve commented Dec 14, 2018

Fixes #10692

Changes proposed in this Pull Request:

  • At first SSO login, set an option
  • If that option is true, display an SSO JITM.
  • Once the SSO JITM has been displayed, set the option to false so it can never be displayed again

screenshot 2018-12-14 at 22 21 25

Testing instructions:

  • Enable SSO on your site.
  • Log out.
  • Log back in, using SSO.
  • See the banner in the screenshot above.
  • Never see it again if you refresh / log out and log back in.

Note that for the CTA link to work, we still need to add the link on WordPress.com (see discussion in D22220-code)

Proposed changelog entry for your changes:

  • SSO: offer message introducing the feature to new users.

@jeherve jeherve added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] In Progress [Feature] JITM Just In Time Messages - pop-up tips and suggestions that appear on the dashboard and sidebar. labels Dec 14, 2018
@jeherve jeherve self-assigned this Dec 14, 2018
@jeherve jeherve requested review from oskosk and a team December 14, 2018 19:48
@jetpackbot
Copy link
Collaborator

jetpackbot commented Dec 14, 2018

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: January 10, 2019.
Scheduled code freeze: January 3, 2019

Generated by 🚫 dangerJS against 3753e33

Fixes #10692

- At first SSO login, set an option
- If that option is true, display an SSO JITM.
- Once the SSO JITM has been displayed, set the option to false so it can never be displayed again
@jeherve jeherve force-pushed the add/sso-first-time-notice branch from ee7fa63 to 33e809e Compare December 14, 2018 21:29
@matticbot
Copy link
Contributor

D22373-code. (newly created revision)

@jeherve jeherve added [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. and removed [Status] In Progress labels Dec 14, 2018
@jeherve jeherve requested a review from a team December 14, 2018 21:34
@jeherve jeherve added the [Status] Needs Design Review Design has been added. Needs a review! label Dec 14, 2018
Copy link
Contributor

@keoshi keoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JITM shows up correctly, but I have some notes:

  • The copy in the banner feels very weird to me. We mention “signed in”, “sign on”, “Logging in”, “log-in”, and “sign in” in just two sentences — this could use some simplification. @michelleweber Could you give us a hand with this copy, please?

You've successfully signed in with WordPress.com Secure Sign On!
Logging in with the same log-in credentials you use for WordPress.com ensures you always sign in to self-hosted WordPress.org sites quickly and securely.

  • The Learn more button redirects to https://wordpress.com/plans/[site_url].

@keoshi keoshi added [Status] Needs Copy [Status] Needs Copy Review Copy has been added. Marketing will be notified for a copy review. and removed [Status] Needs Copy labels Dec 17, 2018
@michelleweber
Copy link

You've successfully signed in with WordPress.com Secure Sign On!
With Secure Sign On, you use your WordPress.com username and password to access self-hosted WordPress sites quickly and securely.

A question, though -- I don't understand why we need the second line of text here. If they see this after they log in using SSO, that means that they have enabled SSO. So why do we need to sell them on its benefits if they're already using it?

- Separates JITM building from the function that overwrites exisiting JITMs.
- Clean up and update comments.
@keoshi
Copy link
Contributor

keoshi commented Dec 17, 2018

Thanks @michelleweber!! I think the goal is to reinforce the benefit, highlighting the provided value.

@keoshi keoshi removed the [Status] Needs Design Review Design has been added. Needs a review! label Dec 17, 2018
@jeherve
Copy link
Member Author

jeherve commented Dec 17, 2018

With Secure Sign On, you use your WordPress.com username and password to access self-hosted WordPress sites quickly and securely.

A question, though -- I don't understand why we need the second line of text here. If they see this after they log in using SSO, that means that they have enabled SSO. So why do we need to sell them on its benefits if they're already using it?

I think the goal is to reinforce the benefit, highlighting the provided value.

With that in mind, I almost preferred the original copy for that second sentence, since it was doing a bit more than just describing the feature; it was listing an additional advantage you would get since you turned that function on.

@keoshi
Copy link
Contributor

keoshi commented Dec 17, 2018

I don't disagree, @jeherve — the copy just feels very dense and technical to me in addition to very inconsistent with the “sign in/on, log in/-in” language.

@michelleweber
Copy link

michelleweber commented Dec 17, 2018

Honestly, I'd delete the line entirely and just have the success message. The quasi-promotional tone feels off to me here since the feature is already enabled. At most, I'd do a second line along the lines of "Interested in learning more about how Secure Sign on keeps your site safer?" and linking to the details to make it educational.

If it's important to you to keep it, I'd still use the rewritten line, which says the same thing as the original: you get to use the same credentials, it's fast, it's safe. If you prefer the original, that's fine; I'd just shorten the first part of the sentence to the simpler "Signing on with your WP.com credentials..." And be consistent re: sign on vs. sign in.

@jeherve
Copy link
Member Author

jeherve commented Dec 17, 2018

Thank you! I've updated the notice accordingly:

image

Copy link
Contributor

@brbrr brbrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests well! 🐑

@brbrr brbrr merged commit 5883358 into master Dec 18, 2018
@brbrr brbrr deleted the add/sso-first-time-notice branch December 18, 2018 07:50
@jeherve
Copy link
Member Author

jeherve commented Dec 18, 2018

I deployed D22220-code to add the link to the SSO support page.

@jeherve jeherve added [Status] Has Changelog and removed [Status] Needs Changelog [Status] Needs Copy Review Copy has been added. Marketing will be notified for a copy review. [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. labels Dec 19, 2018
jeherve added a commit that referenced this pull request Dec 19, 2018
jeherve added a commit that referenced this pull request Jan 3, 2019
jeherve added a commit that referenced this pull request Jan 3, 2019
* Add first version of the Changelog and testing list for 6.9

* Changelog: add #10710

* changelog: add #10538

* changelog: add #10741

* changelog: add #10749

* changelog: add #10664

* changelog: add #10224

* changelog: add #10788

* Changelog: add #10560

* Chanegelog: add #10812

* changelog: add #10556

* Changelog: add #10668

* Changelog: add #10846

* Changelog: add #10947

* Changelog: add #10962

* Changelog: add #10956

* Changelog: add #10940

* Changelog: add #10934

* Changelog: add #10912

* changelog: add #10866

* changelog: add #10924

* Changelog: add #10936

* Changelog: add #10833

* changelog: add #10867

* Changelog: add #10960

* Changelog: add #10888

* changelog: add #10840

* changelog: add #10972

* Changelog: add #10979

* changelog: add #10909

* Changelog: add #10958

* Changelog: add #10981

* Changelog: add #10564

* Changelog: add #10809

* Changelog: add #10982

* Changelog: add #10706

* Changelog: add #10978

* Changelog: add #10132

* Changelog: add #11022

* Changelog: add #11024

* Changelog: add #10875

* Changelog: add #11030

* Changelog: add #11053

* Changelog: add #10880

* Changelog: add #9359

* Changelog: add #11037

* Update block list

* Changelog: add #11060

* Changelog: add #10755

* changelog: add #11000

* Changelog: add #10786

* Changelog: add #10945

* Changelog: add #10597
@rickybanister
Copy link

A jitm wasn't exactly what came to mind to address @annezazu's original concern here. I don't fully recall the original concern, but I kind of feel like the right place to reassure someone in using SSO is when they turn on the setting. If they managed to finally login using it, there seems no value in showing them a message linking them to a support document that explains something they presumably already know.

Can we remove this jitm?

@joanrho
Copy link
Contributor

joanrho commented Jan 25, 2019

@rickybanister your notes from your original P2 post (p6TEKc-2m8-p2, item 5.17):

WordPress.com login—more reassurance that it’s a safer way to login would be good once you’ve successfully logged in.

You can view @annezazu's original suggestion about this in her demo video at 13:26.

@rickybanister
Copy link

Yes, I reread my note from the thread.

I'm not sure that the feedback from @annezazu and the root problem are solved by a just-in-time-message after login has happened. When I reviewed this PR (albeit very late) I noticed that the experience is sort of like:

  1. Enable SSO presumably because you understood what it means and how it works (obviously we can't take this for granted)
  2. End your WordPress session
  3. Start a new session and see the SSO screen (or wpcom login if not logged in) instead of the wp-admin login
  4. Authenticate
  5. See a message at the top of the screen telling you what you presumably know (you've successfully logged in) and if you'd like you can now read a support document explaining how it worked

Upon thinking about this further I don't find that flow to be more reassuring. Perhaps there is work we can do in settings to better explain SSO and also on the SSO auth screen (a big lock icon perhaps). We also don't do much of anything to make it easy to activate 2fa, even though we make it easy to require it. Those are areas I feel we could provide more impact and reassurance. I'm reminded of Google's approach to security audits—every six months or so they log you out and after you log back in your session is hijacked and you're forced to reconfirm your personal information and verify certain details to keep your account safe. It feels like a lot, but I feel like they have my back as far as security goes.

@jeherve
Copy link
Member Author

jeherve commented Jan 28, 2019

Enable SSO presumably because you understood what it means and how it works (obviously we can't take this for granted)

I would assume that most site owners actually enable SSO as part of Jumpstart. They consequently don't really know they are enabling it, they are just clicking a button to enable all our recommended features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] JITM Just In Time Messages - pop-up tips and suggestions that appear on the dashboard and sidebar. [Feature] SSO Touches WP.com Files [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings: show banner after first successful WordPress.com Secure Sign On login
8 participants