1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 12:12:43 +01:00
phorge-phorge/src/applications/auth/query
epriestley 541d794c13 Give ExternalAccount a providerConfigPHID, tying it to a particular provider
Summary:
Depends on D20111. Ref T6703. Currently, each ExternalAccount row is tied to a provider by `providerType` + `providerDomain`. This effectively prevents multiple providers of the same type, since, e.g., two LDAP providers may be on different ports on the same domain. The `domain` also isn't really a useful idea anyway because you can move which hostname an LDAP server is on, and LDAP actually uses the value `self` in all cases. Yeah, yikes.

Instead, just bind each account to a particular provider. Then we can have an LDAP "alice" on seven different servers on different ports on the same machine and they can all move around and we'll still have a consistent, cohesive view of the world.

(On its own, this creates some issues with the link/unlink/refresh flows. Those will be updated in followups, and doing this change in a way with no intermediate breaks would require fixing them to use IDs to reference providerType/providerDomain, then fixing this, then undoing the first fix most of the way.)

Test Plan: Ran migrations, sanity-checked database. See followup changes for more comprehensive testing.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T6703

Differential Revision: https://secure.phabricator.com/D20112
2019-02-12 14:48:14 -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 Give "MetaMTAMail" a "message type" and support SMS 2019-01-23 14:05:46 -08:00
PhabricatorAuthContactNumberTransactionQuery.php Add "Contact Numbers" so we can send users SMS mesages 2019-01-23 13:39:56 -08:00
PhabricatorAuthFactorConfigQuery.php Allow MFA providers to be deprecated or disabled 2019-01-28 09:29:27 -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 Move the Auth Provider edit flow toward a more modern layout 2019-02-05 14:19:26 -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 Give ExternalAccount a providerConfigPHID, tying it to a particular provider 2019-02-12 14:48:14 -08:00