1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 20:22:46 +01:00
phorge-phorge/src/applications/auth/query
epriestley f0c6ee4823 Add "Contact Numbers" so we can send users SMS mesages
Summary:
Ref T920. To send you SMS messages, we need to know your phone number.

This adds bare-bone basics (transactions, storage, editor, etc).

From here:

**Disabling Numbers**: I'll let you disable numbers in an upcoming diff.

**Primary Number**: I think I'm just going to let you pick a number as "primary", similar to how email works. We could imagine a world where you have one "MFA" number and one "notifications" number, but this seems unlikely-ish?

**Publishing Numbers (Profile / API)**: At some point, we could let you say that a number is public / "show on my profile" and provide API access / directory features. Not planning to touch this for now.

**Non-Phone Numbers**: Eventually this could be a list of other similar contact mechanisms (APNS/GCM devices, Whatsapp numbers, ICQ number, twitter handle so MFA can slide into your DM's?). Not planning to touch this for now, but the path should be straightforward when we get there. This is why it's called "Contact Number", not "Phone Number".

**MFA-Required + SMS**: Right now, if the only MFA provider is SMS and MFA is required on the install, you can't actually get into Settings to add a contact number to configure SMS. I'll look at the best way to deal with this in an upcoming diff -- likely, giving you partial access to more of Setings before you get thorugh the MFA gate. Conceptually, it seems reasonable to let you adjust some other settings, like "Language" and "Accessibility", before you set up MFA, so if the "you need to add MFA" portal was more like a partial Settings screen, maybe that's pretty reasonable.

**Verifying Numbers**: We'll probably need to tackle this eventually, but I'm not planning to worry about it for now.

Test Plan: {F6137174}

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: avivey, PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T920

Differential Revision: https://secure.phabricator.com/D19988
2019-01-23 13:39:56 -08:00
..
PhabricatorAuthChallengeQuery.php Track MFA "challenges" so we can bind challenges to sessions and support SMS and other push MFA 2018-12-17 07:00:21 -08:00
PhabricatorAuthContactNumberQuery.php Add "Contact Numbers" so we can send users SMS mesages 2019-01-23 13:39:56 -08:00
PhabricatorAuthContactNumberTransactionQuery.php Add "Contact Numbers" so we can send users SMS mesages 2019-01-23 13:39:56 -08:00
PhabricatorAuthFactorConfigQuery.php Update bin/auth MFA commands for the new "MFA Provider" indirection layer 2019-01-23 13:38:44 -08:00
PhabricatorAuthFactorProviderQuery.php Convert user MFA factors to point at configurable "MFA Providers", not raw "MFA Factors" 2019-01-23 13:37:43 -08:00
PhabricatorAuthFactorProviderTransactionQuery.php Add a skeleton for configurable MFA provider types 2019-01-16 12:27:23 -08:00
PhabricatorAuthInviteQuery.php Update many Phabricator queries for new %Q query semantics 2018-11-15 03:48:10 -08:00
PhabricatorAuthInviteSearchEngine.php Reduce application search engine results list for Dashboards 2017-02-22 12:42:43 -08:00
PhabricatorAuthMessageQuery.php Add "Auth Messages" to support customizing onboarding/welcome flows 2019-01-18 19:53:19 -08:00
PhabricatorAuthMessageTransactionQuery.php Add "Auth Messages" to support customizing onboarding/welcome flows 2019-01-18 19:53:19 -08:00
PhabricatorAuthPasswordQuery.php Add a more modern object for storing password hashes 2018-01-22 15:35:28 -08:00
PhabricatorAuthPasswordTransactionQuery.php Add test coverage to the PasswordEngine upgrade workflow and fix a few bugs 2018-01-23 10:55:35 -08:00
PhabricatorAuthProviderConfigQuery.php Update many Phabricator queries for new %Q query semantics 2018-11-15 03:48:10 -08:00
PhabricatorAuthProviderConfigTransactionQuery.php Use application PHIDs for application transactions 2013-07-29 12:04:15 -07:00
PhabricatorAuthSessionQuery.php Upgrade sessions digests to HMAC256, retaining compatibility with old digests 2018-12-13 16:15:38 -08:00
PhabricatorAuthSSHKeyQuery.php Continue making application fixes to Phabricator for changes to %Q semantics 2018-11-15 03:50:02 -08:00
PhabricatorAuthSSHKeySearchEngine.php Add ViewController and SearchEngine for SSH Public Keys 2016-05-19 09:48:46 -07:00
PhabricatorAuthSSHKeyTransactionQuery.php Use transactions to apply web UI SSH key edits 2016-05-19 15:00:18 -07:00
PhabricatorAuthTemporaryTokenQuery.php Make temporary token storage/schema more flexible 2016-03-16 09:33:38 -07:00
PhabricatorExternalAccountQuery.php Add a session engine extension point 2016-04-05 15:19:47 -07:00