Page MenuHomePhabricator

Consolidate password verification/revocation logic in a new PhabricatorAuthPasswordEngine
ClosedPublic

Authored by epriestley on Jan 21 2018, 3:27 AM.
Tags
None
Referenced Files
F13045891: D18896.id.diff
Thu, Apr 18, 4:20 AM
Unknown Object (File)
Sun, Apr 14, 5:08 PM
Unknown Object (File)
Tue, Apr 2, 4:46 PM
Unknown Object (File)
Sun, Mar 31, 7:52 PM
Unknown Object (File)
Feb 23 2024, 7:18 PM
Unknown Object (File)
Feb 18 2024, 2:04 PM
Unknown Object (File)
Jan 18 2024, 3:10 AM
Unknown Object (File)
Dec 22 2023, 8:50 PM
Subscribers
None

Details

Summary

Ref T13043. This provides a new piece of shared infrastructure that VCS passwords and account passwords can use to validate passwords that users enter.

This isn't reachable by anything yet.

The test coverage of the "upgrade" flow (where we rehash a password to use a stronger hasher) isn't great in this diff, I'll expand that in the next change and then start migrating things.

Test Plan

Added a bunch of unit tests.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Most of this logic is just adapted from the VCS password flow rather than new code, and I have a diff on top of this for converting that flow to use the new Engine. Once that makes it off my machine it may make reviewing this one a little easier.

src/applications/auth/xaction/PhabricatorAuthPasswordUpgradeTransaction.php
10

I'm not entirely sure this actually works so it may change in the next diff. This transaction is a little unusual.

amckinley added inline comments.
src/applications/auth/__tests__/PhabricatorAuthPasswordTestCase.php
87

Redundant check/copy paste error?

This revision now requires changes to proceed.Jan 23 2018, 2:49 AM
  • Fix copy/paste in test case.
This revision is now accepted and ready to land.Jan 23 2018, 6:20 PM
This revision was automatically updated to reflect the committed changes.