Page MenuHomePhabricator

Prompt for reauthentication after submitting a site JS edit, not before
Closed, ResolvedPublic

Description

Currently, the hack in WikimediaCustomizations prompts for reauthentication when the user tries to go to the edit form. Instead, we want to allow the user to go to the edit form without reauthenticating, and only prompt for reauth when the user tries to save the edit.

This requires stashing the contents of the edit form that the user submitted, and resubmitting them after the user completes the reauth process.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

AuthManagerSpecialPage::handleReauthBeforeExecute() does something similar for auth forms (although it does send to reauth when showing the form as well), although in a somewhat hacky way.

Change #1301450 had a related patch set uploaded (by SBassett; author: SBassett):

[mediawiki/core@master] Prompt for reauthentication after submitting a site JS edit, not before

https://gerrit.wikimedia.org/r/1301450

Change #1301450 merged by jenkins-bot:

[mediawiki/core@master] Prompt for reauthentication after submitting a site JS edit, not before

https://gerrit.wikimedia.org/r/1301450

sbassett triaged this task as Medium priority.
sbassett added a project: Security-Team.