1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-04 12:42:43 +01:00
phorge-phorge/src/applications/auth/engine
epriestley 12c3370988 When issuing a "no-op" MFA token because no MFA is configured, don't give the timeline story a badge
Summary:
Fixes T13475. Sometimes, we issue a "no op" / "default permit" / "unchallenged" MFA token, when a user with no MFA configured does something which is configured to attempt (but not strictly require) MFA.

An example of this kind of action is changing a username: usernames may be changed even if MFA is not set up.

(Some other operations, notably "Sign With MFA", strictly require that MFA actually be set up.)

When a user with no MFA configured takes a "try MFA" action, we see that they have no factors configured and issue a token so they can continue. This is correct. However, this token causes the assocaited timeline story to get an MFA badge.

This badge is incorrect or at least wildly misleading, since the technical assertion it currently makes ("the user answered any configured MFA challenge to do this, if one exists") isn't explained properly and isn't useful anyway.

Instead, only badge the story if the user actually has MFA and actually responded to some kind of MFA challege. The badge now asserts "this user responded to an MFA challenge", which is expected/desired.

Test Plan:
  - As a user with no MFA, renamed a user. Before patch: badged story. After patch: no badge.
  - As a user with MFA, renamed a user. Got badged stories in both cases.

Maniphest Tasks: T13475

Differential Revision: https://secure.phabricator.com/D20958
2020-01-30 07:35:40 -08:00
..
PhabricatorAuthContactNumberMFAEngine.php Always require MFA to edit contact numbers 2019-01-23 14:19:56 -08:00
PhabricatorAuthCSRFEngine.php Remove "phabricator.csrf-key" and upgrade CSRF hashing to SHA256 2019-01-04 13:49:47 -08:00
PhabricatorAuthFactorProviderMFAEngine.php Require MFA to edit MFA providers 2019-01-28 09:44:39 -08:00
PhabricatorAuthInviteEngine.php Fix a typo 2019-02-24 13:37:14 +00:00
PhabricatorAuthPasswordEngine.php Prevent users from selecting excessively bad passwords based on their username or email address 2018-11-06 12:44:07 -08:00
PhabricatorAuthSessionEngine.php When issuing a "no-op" MFA token because no MFA is configured, don't give the timeline story a badge 2020-01-30 07:35:40 -08:00
PhabricatorAuthSessionEngineExtension.php Add session and request hooks to PhabricatorAuthSessionEngine 2016-11-17 13:09:29 -08:00
PhabricatorAuthSessionEngineExtensionModule.php Redesign Config Application 2016-08-29 15:49:49 -07:00