@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

Rename auth classes for consistency

Summary: Ref T5655. Depends on D9998.

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: 20after4, epriestley, Korvin

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D9999

+80 -85
+34 -34
src/__phutil_library_map__.php
··· 1127 1127 'PhabricatorActionListView' => 'view/layout/PhabricatorActionListView.php', 1128 1128 'PhabricatorActionView' => 'view/layout/PhabricatorActionView.php', 1129 1129 'PhabricatorAllCapsTranslation' => 'infrastructure/internationalization/translation/PhabricatorAllCapsTranslation.php', 1130 + 'PhabricatorAmazonAuthProvider' => 'applications/auth/provider/PhabricatorAmazonAuthProvider.php', 1130 1131 'PhabricatorAnchorView' => 'view/layout/PhabricatorAnchorView.php', 1131 1132 'PhabricatorAphlictManagementBuildWorkflow' => 'applications/aphlict/management/PhabricatorAphlictManagementBuildWorkflow.php', 1132 1133 'PhabricatorAphlictManagementDebugWorkflow' => 'applications/aphlict/management/PhabricatorAphlictManagementDebugWorkflow.php', ··· 1240 1241 'PhabricatorApplicationXHProf' => 'applications/xhprof/application/PhabricatorApplicationXHProf.php', 1241 1242 'PhabricatorApplicationsController' => 'applications/meta/controller/PhabricatorApplicationsController.php', 1242 1243 'PhabricatorApplicationsListController' => 'applications/meta/controller/PhabricatorApplicationsListController.php', 1244 + 'PhabricatorAsanaAuthProvider' => 'applications/auth/provider/PhabricatorAsanaAuthProvider.php', 1243 1245 'PhabricatorAsanaConfigOptions' => 'applications/doorkeeper/option/PhabricatorAsanaConfigOptions.php', 1244 1246 'PhabricatorAuditActionConstants' => 'applications/audit/constants/PhabricatorAuditActionConstants.php', 1245 1247 'PhabricatorAuditAddCommentController' => 'applications/audit/controller/PhabricatorAuditAddCommentController.php', ··· 1293 1295 'PhabricatorAuthProviderConfigQuery' => 'applications/auth/query/PhabricatorAuthProviderConfigQuery.php', 1294 1296 'PhabricatorAuthProviderConfigTransaction' => 'applications/auth/storage/PhabricatorAuthProviderConfigTransaction.php', 1295 1297 'PhabricatorAuthProviderConfigTransactionQuery' => 'applications/auth/query/PhabricatorAuthProviderConfigTransactionQuery.php', 1296 - 'PhabricatorAuthProviderLDAP' => 'applications/auth/provider/PhabricatorAuthProviderLDAP.php', 1297 - 'PhabricatorAuthProviderOAuth' => 'applications/auth/provider/PhabricatorAuthProviderOAuth.php', 1298 - 'PhabricatorAuthProviderOAuth1' => 'applications/auth/provider/PhabricatorAuthProviderOAuth1.php', 1299 - 'PhabricatorAuthProviderOAuth1Bitbucket' => 'applications/auth/provider/PhabricatorAuthProviderOAuth1Bitbucket.php', 1300 - 'PhabricatorAuthProviderOAuth1JIRA' => 'applications/auth/provider/PhabricatorAuthProviderOAuth1JIRA.php', 1301 - 'PhabricatorAuthProviderOAuth1Twitter' => 'applications/auth/provider/PhabricatorAuthProviderOAuth1Twitter.php', 1302 - 'PhabricatorAuthProviderOAuth2' => 'applications/auth/provider/PhabricatorAuthProviderOAuth2.php', 1303 - 'PhabricatorAuthProviderOAuthAmazon' => 'applications/auth/provider/PhabricatorAuthProviderOAuthAmazon.php', 1304 - 'PhabricatorAuthProviderOAuthAsana' => 'applications/auth/provider/PhabricatorAuthProviderOAuthAsana.php', 1305 - 'PhabricatorAuthProviderOAuthDisqus' => 'applications/auth/provider/PhabricatorAuthProviderOAuthDisqus.php', 1306 - 'PhabricatorAuthProviderOAuthFacebook' => 'applications/auth/provider/PhabricatorAuthProviderOAuthFacebook.php', 1307 - 'PhabricatorAuthProviderOAuthGitHub' => 'applications/auth/provider/PhabricatorAuthProviderOAuthGitHub.php', 1308 - 'PhabricatorAuthProviderOAuthGoogle' => 'applications/auth/provider/PhabricatorAuthProviderOAuthGoogle.php', 1309 - 'PhabricatorAuthProviderOAuthTwitch' => 'applications/auth/provider/PhabricatorAuthProviderOAuthTwitch.php', 1310 - 'PhabricatorAuthProviderOAuthWordPress' => 'applications/auth/provider/PhabricatorAuthProviderOAuthWordPress.php', 1311 - 'PhabricatorAuthProviderPassword' => 'applications/auth/provider/PhabricatorAuthProviderPassword.php', 1312 - 'PhabricatorAuthProviderPersona' => 'applications/auth/provider/PhabricatorAuthProviderPersona.php', 1313 1298 'PhabricatorAuthRegisterController' => 'applications/auth/controller/PhabricatorAuthRegisterController.php', 1314 1299 'PhabricatorAuthSession' => 'applications/auth/storage/PhabricatorAuthSession.php', 1315 1300 'PhabricatorAuthSessionEngine' => 'applications/auth/engine/PhabricatorAuthSessionEngine.php', ··· 1330 1315 'PhabricatorBaseEnglishTranslation' => 'infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php', 1331 1316 'PhabricatorBaseProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorBaseProtocolAdapter.php', 1332 1317 'PhabricatorBcryptPasswordHasher' => 'infrastructure/util/password/PhabricatorBcryptPasswordHasher.php', 1318 + 'PhabricatorBitbucketAuthProvider' => 'applications/auth/provider/PhabricatorBitbucketAuthProvider.php', 1333 1319 'PhabricatorBot' => 'infrastructure/daemon/bot/PhabricatorBot.php', 1334 1320 'PhabricatorBotBaseStreamingProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorBotBaseStreamingProtocolAdapter.php', 1335 1321 'PhabricatorBotChannel' => 'infrastructure/daemon/bot/target/PhabricatorBotChannel.php', ··· 1557 1543 'PhabricatorDifferentialRevisionTestDataGenerator' => 'applications/differential/lipsum/PhabricatorDifferentialRevisionTestDataGenerator.php', 1558 1544 'PhabricatorDiffusionConfigOptions' => 'applications/diffusion/config/PhabricatorDiffusionConfigOptions.php', 1559 1545 'PhabricatorDisabledUserController' => 'applications/auth/controller/PhabricatorDisabledUserController.php', 1546 + 'PhabricatorDisqusAuthProvider' => 'applications/auth/provider/PhabricatorDisqusAuthProvider.php', 1560 1547 'PhabricatorDisqusConfigOptions' => 'applications/config/option/PhabricatorDisqusConfigOptions.php', 1561 1548 'PhabricatorDraft' => 'applications/draft/storage/PhabricatorDraft.php', 1562 1549 'PhabricatorDraftDAO' => 'applications/draft/storage/PhabricatorDraftDAO.php', ··· 1584 1571 'PhabricatorExtendingPhabricatorConfigOptions' => 'applications/config/option/PhabricatorExtendingPhabricatorConfigOptions.php', 1585 1572 'PhabricatorExternalAccount' => 'applications/people/storage/PhabricatorExternalAccount.php', 1586 1573 'PhabricatorExternalAccountQuery' => 'applications/auth/query/PhabricatorExternalAccountQuery.php', 1574 + 'PhabricatorFacebookAuthProvider' => 'applications/auth/provider/PhabricatorFacebookAuthProvider.php', 1587 1575 'PhabricatorFactAggregate' => 'applications/fact/storage/PhabricatorFactAggregate.php', 1588 1576 'PhabricatorFactChartController' => 'applications/fact/controller/PhabricatorFactChartController.php', 1589 1577 'PhabricatorFactController' => 'applications/fact/controller/PhabricatorFactController.php', ··· 1688 1676 'PhabricatorGarbageCollectorDaemon' => 'infrastructure/daemon/garbagecollector/PhabricatorGarbageCollectorDaemon.php', 1689 1677 'PhabricatorGestureExample' => 'applications/uiexample/examples/PhabricatorGestureExample.php', 1690 1678 'PhabricatorGitGraphStream' => 'applications/repository/daemon/PhabricatorGitGraphStream.php', 1679 + 'PhabricatorGitHubAuthProvider' => 'applications/auth/provider/PhabricatorGitHubAuthProvider.php', 1691 1680 'PhabricatorGlobalLock' => 'infrastructure/util/PhabricatorGlobalLock.php', 1692 1681 'PhabricatorGlobalUploadTargetView' => 'applications/files/view/PhabricatorGlobalUploadTargetView.php', 1682 + 'PhabricatorGoogleAuthProvider' => 'applications/auth/provider/PhabricatorGoogleAuthProvider.php', 1693 1683 'PhabricatorHandleObjectSelectorDataView' => 'applications/phid/handle/view/PhabricatorHandleObjectSelectorDataView.php', 1694 1684 'PhabricatorHandleQuery' => 'applications/phid/query/PhabricatorHandleQuery.php', 1695 1685 'PhabricatorHarbormasterConfigOptions' => 'applications/harbormaster/config/PhabricatorHarbormasterConfigOptions.php', ··· 1715 1705 'PhabricatorInternationalizationManagementExtractWorkflow' => 'infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php', 1716 1706 'PhabricatorInternationalizationManagementWorkflow' => 'infrastructure/internationalization/management/PhabricatorInternationalizationManagementWorkflow.php', 1717 1707 'PhabricatorIteratedMD5PasswordHasher' => 'infrastructure/util/password/PhabricatorIteratedMD5PasswordHasher.php', 1708 + 'PhabricatorJIRAAuthProvider' => 'applications/auth/provider/PhabricatorJIRAAuthProvider.php', 1718 1709 'PhabricatorJavelinLinter' => 'infrastructure/lint/linter/PhabricatorJavelinLinter.php', 1719 1710 'PhabricatorJumpNavHandler' => 'applications/search/engine/PhabricatorJumpNavHandler.php', 1720 1711 'PhabricatorKeyValueDatabaseCache' => 'applications/cache/PhabricatorKeyValueDatabaseCache.php', 1712 + 'PhabricatorLDAPAuthProvider' => 'applications/auth/provider/PhabricatorLDAPAuthProvider.php', 1721 1713 'PhabricatorLegacyEdgeType' => 'infrastructure/edges/type/PhabricatorLegacyEdgeType.php', 1722 1714 'PhabricatorLegalpadConfigOptions' => 'applications/legalpad/config/PhabricatorLegalpadConfigOptions.php', 1723 1715 'PhabricatorLegalpadPHIDTypeDocument' => 'applications/legalpad/phid/PhabricatorLegalpadPHIDTypeDocument.php', ··· 1833 1825 'PhabricatorNotificationStatusController' => 'applications/notification/controller/PhabricatorNotificationStatusController.php', 1834 1826 'PhabricatorNotificationStatusView' => 'applications/notification/view/PhabricatorNotificationStatusView.php', 1835 1827 'PhabricatorNotificationTestController' => 'applications/notification/controller/PhabricatorNotificationTestController.php', 1828 + 'PhabricatorOAuth1AuthProvider' => 'applications/auth/provider/PhabricatorOAuth1AuthProvider.php', 1829 + 'PhabricatorOAuth2AuthProvider' => 'applications/auth/provider/PhabricatorOAuth2AuthProvider.php', 1830 + 'PhabricatorOAuthAuthProvider' => 'applications/auth/provider/PhabricatorOAuthAuthProvider.php', 1836 1831 'PhabricatorOAuthClientAuthorization' => 'applications/oauthserver/storage/PhabricatorOAuthClientAuthorization.php', 1837 1832 'PhabricatorOAuthClientAuthorizationQuery' => 'applications/oauthserver/query/PhabricatorOAuthClientAuthorizationQuery.php', 1838 1833 'PhabricatorOAuthClientController' => 'applications/oauthserver/controller/client/PhabricatorOAuthClientController.php', ··· 1891 1886 'PhabricatorPHIDType' => 'applications/phid/type/PhabricatorPHIDType.php', 1892 1887 'PhabricatorPHPMailerConfigOptions' => 'applications/config/option/PhabricatorPHPMailerConfigOptions.php', 1893 1888 'PhabricatorPagedFormExample' => 'applications/uiexample/examples/PhabricatorPagedFormExample.php', 1889 + 'PhabricatorPasswordAuthProvider' => 'applications/auth/provider/PhabricatorPasswordAuthProvider.php', 1894 1890 'PhabricatorPasswordHasher' => 'infrastructure/util/password/PhabricatorPasswordHasher.php', 1895 1891 'PhabricatorPasswordHasherTestCase' => 'infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php', 1896 1892 'PhabricatorPasswordHasherUnavailableException' => 'infrastructure/util/password/PhabricatorPasswordHasherUnavailableException.php', ··· 1936 1932 'PhabricatorPeopleSearchEngine' => 'applications/people/query/PhabricatorPeopleSearchEngine.php', 1937 1933 'PhabricatorPeopleTestDataGenerator' => 'applications/people/lipsum/PhabricatorPeopleTestDataGenerator.php', 1938 1934 'PhabricatorPeopleWelcomeController' => 'applications/people/controller/PhabricatorPeopleWelcomeController.php', 1935 + 'PhabricatorPersonaAuthProvider' => 'applications/auth/provider/PhabricatorPersonaAuthProvider.php', 1939 1936 'PhabricatorPhameConfigOptions' => 'applications/phame/config/PhabricatorPhameConfigOptions.php', 1940 1937 'PhabricatorPhamePHIDTypeBlog' => 'applications/phame/phid/PhabricatorPhamePHIDTypeBlog.php', 1941 1938 'PhabricatorPhamePHIDTypePost' => 'applications/phame/phid/PhabricatorPhamePHIDTypePost.php', ··· 2332 2329 'PhabricatorTranslation' => 'infrastructure/internationalization/translation/PhabricatorTranslation.php', 2333 2330 'PhabricatorTranslationsConfigOptions' => 'applications/config/option/PhabricatorTranslationsConfigOptions.php', 2334 2331 'PhabricatorTrivialTestCase' => 'infrastructure/testing/__tests__/PhabricatorTrivialTestCase.php', 2332 + 'PhabricatorTwitchAuthProvider' => 'applications/auth/provider/PhabricatorTwitchAuthProvider.php', 2333 + 'PhabricatorTwitterAuthProvider' => 'applications/auth/provider/PhabricatorTwitterAuthProvider.php', 2335 2334 'PhabricatorTwoColumnExample' => 'applications/uiexample/examples/PhabricatorTwoColumnExample.php', 2336 2335 'PhabricatorTypeaheadCompositeDatasource' => 'applications/typeahead/datasource/PhabricatorTypeaheadCompositeDatasource.php', 2337 2336 'PhabricatorTypeaheadDatasource' => 'applications/typeahead/datasource/PhabricatorTypeaheadDatasource.php', ··· 2379 2378 'PhabricatorUserTitleField' => 'applications/people/customfield/PhabricatorUserTitleField.php', 2380 2379 'PhabricatorUserTransaction' => 'applications/people/storage/PhabricatorUserTransaction.php', 2381 2380 'PhabricatorVCSResponse' => 'applications/repository/response/PhabricatorVCSResponse.php', 2381 + 'PhabricatorWordPressAuthProvider' => 'applications/auth/provider/PhabricatorWordPressAuthProvider.php', 2382 2382 'PhabricatorWorker' => 'infrastructure/daemon/workers/PhabricatorWorker.php', 2383 2383 'PhabricatorWorkerActiveTask' => 'infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php', 2384 2384 'PhabricatorWorkerArchiveTask' => 'infrastructure/daemon/workers/storage/PhabricatorWorkerArchiveTask.php', ··· 3905 3905 'PhabricatorActionListView' => 'AphrontView', 3906 3906 'PhabricatorActionView' => 'AphrontView', 3907 3907 'PhabricatorAllCapsTranslation' => 'PhabricatorTranslation', 3908 + 'PhabricatorAmazonAuthProvider' => 'PhabricatorOAuth2AuthProvider', 3908 3909 'PhabricatorAnchorView' => 'AphrontView', 3909 3910 'PhabricatorAphlictManagementBuildWorkflow' => 'PhabricatorAphlictManagementWorkflow', 3910 3911 'PhabricatorAphlictManagementDebugWorkflow' => 'PhabricatorAphlictManagementWorkflow', ··· 4024 4025 'PhabricatorApplicationXHProf' => 'PhabricatorApplication', 4025 4026 'PhabricatorApplicationsController' => 'PhabricatorController', 4026 4027 'PhabricatorApplicationsListController' => 'PhabricatorApplicationsController', 4028 + 'PhabricatorAsanaAuthProvider' => 'PhabricatorOAuth2AuthProvider', 4027 4029 'PhabricatorAsanaConfigOptions' => 'PhabricatorApplicationConfigOptions', 4028 4030 'PhabricatorAuditAddCommentController' => 'PhabricatorAuditController', 4029 4031 'PhabricatorAuditComment' => array( ··· 4081 4083 'PhabricatorAuthProviderConfigQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4082 4084 'PhabricatorAuthProviderConfigTransaction' => 'PhabricatorApplicationTransaction', 4083 4085 'PhabricatorAuthProviderConfigTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 4084 - 'PhabricatorAuthProviderLDAP' => 'PhabricatorAuthProvider', 4085 - 'PhabricatorAuthProviderOAuth' => 'PhabricatorAuthProvider', 4086 - 'PhabricatorAuthProviderOAuth1' => 'PhabricatorAuthProviderOAuth', 4087 - 'PhabricatorAuthProviderOAuth1Bitbucket' => 'PhabricatorAuthProviderOAuth1', 4088 - 'PhabricatorAuthProviderOAuth1JIRA' => 'PhabricatorAuthProviderOAuth1', 4089 - 'PhabricatorAuthProviderOAuth1Twitter' => 'PhabricatorAuthProviderOAuth1', 4090 - 'PhabricatorAuthProviderOAuth2' => 'PhabricatorAuthProviderOAuth', 4091 - 'PhabricatorAuthProviderOAuthAmazon' => 'PhabricatorAuthProviderOAuth2', 4092 - 'PhabricatorAuthProviderOAuthAsana' => 'PhabricatorAuthProviderOAuth2', 4093 - 'PhabricatorAuthProviderOAuthDisqus' => 'PhabricatorAuthProviderOAuth2', 4094 - 'PhabricatorAuthProviderOAuthFacebook' => 'PhabricatorAuthProviderOAuth2', 4095 - 'PhabricatorAuthProviderOAuthGitHub' => 'PhabricatorAuthProviderOAuth2', 4096 - 'PhabricatorAuthProviderOAuthGoogle' => 'PhabricatorAuthProviderOAuth2', 4097 - 'PhabricatorAuthProviderOAuthTwitch' => 'PhabricatorAuthProviderOAuth2', 4098 - 'PhabricatorAuthProviderOAuthWordPress' => 'PhabricatorAuthProviderOAuth2', 4099 - 'PhabricatorAuthProviderPassword' => 'PhabricatorAuthProvider', 4100 - 'PhabricatorAuthProviderPersona' => 'PhabricatorAuthProvider', 4101 4086 'PhabricatorAuthRegisterController' => 'PhabricatorAuthController', 4102 4087 'PhabricatorAuthSession' => array( 4103 4088 'PhabricatorAuthDAO', ··· 4123 4108 'PhabricatorBarePageView' => 'AphrontPageView', 4124 4109 'PhabricatorBaseEnglishTranslation' => 'PhabricatorTranslation', 4125 4110 'PhabricatorBcryptPasswordHasher' => 'PhabricatorPasswordHasher', 4111 + 'PhabricatorBitbucketAuthProvider' => 'PhabricatorOAuth1AuthProvider', 4126 4112 'PhabricatorBot' => 'PhabricatorDaemon', 4127 4113 'PhabricatorBotBaseStreamingProtocolAdapter' => 'PhabricatorBaseProtocolAdapter', 4128 4114 'PhabricatorBotChannel' => 'PhabricatorBotTarget', ··· 4368 4354 'PhabricatorDifferentialRevisionTestDataGenerator' => 'PhabricatorTestDataGenerator', 4369 4355 'PhabricatorDiffusionConfigOptions' => 'PhabricatorApplicationConfigOptions', 4370 4356 'PhabricatorDisabledUserController' => 'PhabricatorAuthController', 4357 + 'PhabricatorDisqusAuthProvider' => 'PhabricatorOAuth2AuthProvider', 4371 4358 'PhabricatorDisqusConfigOptions' => 'PhabricatorApplicationConfigOptions', 4372 4359 'PhabricatorDraft' => 'PhabricatorDraftDAO', 4373 4360 'PhabricatorDraftDAO' => 'PhabricatorLiskDAO', ··· 4395 4382 'PhabricatorPolicyInterface', 4396 4383 ), 4397 4384 'PhabricatorExternalAccountQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4385 + 'PhabricatorFacebookAuthProvider' => 'PhabricatorOAuth2AuthProvider', 4398 4386 'PhabricatorFactAggregate' => 'PhabricatorFactDAO', 4399 4387 'PhabricatorFactChartController' => 'PhabricatorFactController', 4400 4388 'PhabricatorFactController' => 'PhabricatorController', ··· 4505 4493 'PhabricatorGarbageCollectorDaemon' => 'PhabricatorDaemon', 4506 4494 'PhabricatorGestureExample' => 'PhabricatorUIExample', 4507 4495 'PhabricatorGitGraphStream' => 'PhabricatorRepositoryGraphStream', 4496 + 'PhabricatorGitHubAuthProvider' => 'PhabricatorOAuth2AuthProvider', 4508 4497 'PhabricatorGlobalLock' => 'PhutilLock', 4509 4498 'PhabricatorGlobalUploadTargetView' => 'AphrontView', 4499 + 'PhabricatorGoogleAuthProvider' => 'PhabricatorOAuth2AuthProvider', 4510 4500 'PhabricatorHandleQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4511 4501 'PhabricatorHarbormasterConfigOptions' => 'PhabricatorApplicationConfigOptions', 4512 4502 'PhabricatorHashTestCase' => 'PhabricatorTestCase', ··· 4529 4519 'PhabricatorInternationalizationManagementExtractWorkflow' => 'PhabricatorInternationalizationManagementWorkflow', 4530 4520 'PhabricatorInternationalizationManagementWorkflow' => 'PhabricatorManagementWorkflow', 4531 4521 'PhabricatorIteratedMD5PasswordHasher' => 'PhabricatorPasswordHasher', 4522 + 'PhabricatorJIRAAuthProvider' => 'PhabricatorOAuth1AuthProvider', 4532 4523 'PhabricatorJavelinLinter' => 'ArcanistLinter', 4533 4524 'PhabricatorKeyValueDatabaseCache' => 'PhutilKeyValueCache', 4525 + 'PhabricatorLDAPAuthProvider' => 'PhabricatorAuthProvider', 4534 4526 'PhabricatorLegacyEdgeType' => 'PhabricatorEdgeType', 4535 4527 'PhabricatorLegalpadConfigOptions' => 'PhabricatorApplicationConfigOptions', 4536 4528 'PhabricatorLegalpadPHIDTypeDocument' => 'PhabricatorPHIDType', ··· 4639 4631 'PhabricatorNotificationStatusController' => 'PhabricatorNotificationController', 4640 4632 'PhabricatorNotificationStatusView' => 'AphrontTagView', 4641 4633 'PhabricatorNotificationTestController' => 'PhabricatorNotificationController', 4634 + 'PhabricatorOAuth1AuthProvider' => 'PhabricatorOAuthAuthProvider', 4635 + 'PhabricatorOAuth2AuthProvider' => 'PhabricatorOAuthAuthProvider', 4636 + 'PhabricatorOAuthAuthProvider' => 'PhabricatorAuthProvider', 4642 4637 'PhabricatorOAuthClientAuthorization' => array( 4643 4638 'PhabricatorOAuthServerDAO', 4644 4639 'PhabricatorPolicyInterface', ··· 4695 4690 'PhabricatorPHDConfigOptions' => 'PhabricatorApplicationConfigOptions', 4696 4691 'PhabricatorPHPMailerConfigOptions' => 'PhabricatorApplicationConfigOptions', 4697 4692 'PhabricatorPagedFormExample' => 'PhabricatorUIExample', 4693 + 'PhabricatorPasswordAuthProvider' => 'PhabricatorAuthProvider', 4698 4694 'PhabricatorPasswordHasher' => 'Phobject', 4699 4695 'PhabricatorPasswordHasherTestCase' => 'PhabricatorTestCase', 4700 4696 'PhabricatorPasswordHasherUnavailableException' => 'Exception', ··· 4747 4743 'PhabricatorPeopleSearchEngine' => 'PhabricatorApplicationSearchEngine', 4748 4744 'PhabricatorPeopleTestDataGenerator' => 'PhabricatorTestDataGenerator', 4749 4745 'PhabricatorPeopleWelcomeController' => 'PhabricatorPeopleController', 4746 + 'PhabricatorPersonaAuthProvider' => 'PhabricatorAuthProvider', 4750 4747 'PhabricatorPhameConfigOptions' => 'PhabricatorApplicationConfigOptions', 4751 4748 'PhabricatorPhamePHIDTypeBlog' => 'PhabricatorPHIDType', 4752 4749 'PhabricatorPhamePHIDTypePost' => 'PhabricatorPHIDType', ··· 5174 5171 'PhabricatorTransformedFile' => 'PhabricatorFileDAO', 5175 5172 'PhabricatorTranslationsConfigOptions' => 'PhabricatorApplicationConfigOptions', 5176 5173 'PhabricatorTrivialTestCase' => 'PhabricatorTestCase', 5174 + 'PhabricatorTwitchAuthProvider' => 'PhabricatorOAuth2AuthProvider', 5175 + 'PhabricatorTwitterAuthProvider' => 'PhabricatorOAuth1AuthProvider', 5177 5176 'PhabricatorTwoColumnExample' => 'PhabricatorUIExample', 5178 5177 'PhabricatorTypeaheadCompositeDatasource' => 'PhabricatorTypeaheadDatasource', 5179 5178 'PhabricatorTypeaheadDatasource' => 'Phobject', ··· 5231 5230 'PhabricatorUserTitleField' => 'PhabricatorUserCustomField', 5232 5231 'PhabricatorUserTransaction' => 'PhabricatorApplicationTransaction', 5233 5232 'PhabricatorVCSResponse' => 'AphrontResponse', 5233 + 'PhabricatorWordPressAuthProvider' => 'PhabricatorOAuth2AuthProvider', 5234 5234 'PhabricatorWorkerActiveTask' => 'PhabricatorWorkerTask', 5235 5235 'PhabricatorWorkerArchiveTask' => 'PhabricatorWorkerTask', 5236 5236 'PhabricatorWorkerDAO' => 'PhabricatorLiskDAO',
+3 -4
src/applications/auth/provider/PhabricatorAuthProviderLDAP.php src/applications/auth/provider/PhabricatorLDAPAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderLDAP 4 - extends PhabricatorAuthProvider { 3 + final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider { 5 4 6 5 private $adapter; 7 6 ··· 34 33 $search_attributes = phutil_split_lines($search_attributes, false); 35 34 $search_attributes = array_filter($search_attributes); 36 35 37 - $adapter = id(new PhutilAuthAdapterLDAP()) 36 + $adapter = id(new PhutilLDAPAuthAdapter()) 38 37 ->setHostname( 39 38 $conf->getProperty(self::KEY_HOSTNAME)) 40 39 ->setPort( ··· 160 159 $adapter->setLoginPassword($password); 161 160 162 161 // TODO: This calls ldap_bind() eventually, which dumps cleartext 163 - // passwords to the error log. See note in PhutilAuthAdapterLDAP. 162 + // passwords to the error log. See note in PhutilLDAPAuthAdapter. 164 163 // See T3351. 165 164 166 165 DarkConsoleErrorLogPluginAPI::enableDiscardMode();
+1 -1
src/applications/auth/provider/PhabricatorAuthProviderOAuth.php src/applications/auth/provider/PhabricatorOAuthAuthProvider.php
··· 1 1 <?php 2 2 3 - abstract class PhabricatorAuthProviderOAuth extends PhabricatorAuthProvider { 3 + abstract class PhabricatorOAuthAuthProvider extends PhabricatorAuthProvider { 4 4 5 5 const PROPERTY_NOTE = 'oauth:app:note'; 6 6
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuth1.php src/applications/auth/provider/PhabricatorOAuth1AuthProvider.php
··· 1 1 <?php 2 2 3 - abstract class PhabricatorAuthProviderOAuth1 4 - extends PhabricatorAuthProviderOAuth { 3 + abstract class PhabricatorOAuth1AuthProvider 4 + extends PhabricatorOAuthAuthProvider { 5 5 6 6 protected $adapter; 7 7 ··· 19 19 return self::PROPERTY_CONSUMER_SECRET; 20 20 } 21 21 22 - protected function configureAdapter(PhutilAuthAdapterOAuth1 $adapter) { 22 + protected function configureAdapter(PhutilOAuth1AuthAdapter $adapter) { 23 23 $config = $this->getProviderConfig(); 24 24 $adapter->setConsumerKey($config->getProperty(self::PROPERTY_CONSUMER_KEY)); 25 25 $secret = $config->getProperty(self::PROPERTY_CONSUMER_SECRET);
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuth1Bitbucket.php src/applications/auth/provider/PhabricatorBitbucketAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuth1Bitbucket 4 - extends PhabricatorAuthProviderOAuth1 { 3 + final class PhabricatorBitbucketAuthProvider 4 + extends PhabricatorOAuth1AuthProvider { 5 5 6 6 public function getProviderName() { 7 7 return pht('Bitbucket'); ··· 17 17 } 18 18 19 19 protected function newOAuthAdapter() { 20 - return new PhutilAuthAdapterOAuthBitbucket(); 20 + return new PhutilBitbucketAuthAdapter(); 21 21 } 22 22 23 23 protected function getLoginIcon() {
+3 -4
src/applications/auth/provider/PhabricatorAuthProviderOAuth1JIRA.php src/applications/auth/provider/PhabricatorJIRAAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuth1JIRA 4 - extends PhabricatorAuthProviderOAuth1 { 3 + final class PhabricatorJIRAAuthProvider extends PhabricatorOAuth1AuthProvider { 5 4 6 5 public function getJIRABaseURI() { 7 6 return $this->getProviderConfig()->getProperty(self::PROPERTY_JIRA_URI); ··· 58 57 protected function newOAuthAdapter() { 59 58 $config = $this->getProviderConfig(); 60 59 61 - return id(new PhutilAuthAdapterOAuthJIRA()) 60 + return id(new PhutilJIRAAuthAdapter()) 62 61 ->setAdapterDomain($config->getProviderDomain()) 63 62 ->setJIRABaseURI($config->getProperty(self::PROPERTY_JIRA_URI)) 64 63 ->setPrivateKey( ··· 143 142 $config->setProviderDomain($values[$key_name]); 144 143 145 144 $consumer_key = 'phjira.'.Filesystem::readRandomCharacters(16); 146 - list($public, $private) = PhutilAuthAdapterOAuthJIRA::newJIRAKeypair(); 145 + list($public, $private) = PhutilJIRAAuthAdapter::newJIRAKeypair(); 147 146 148 147 $config->setProperty(self::PROPERTY_PUBLIC_KEY, $public); 149 148 $config->setProperty(self::PROPERTY_PRIVATE_KEY, $private);
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuth1Twitter.php src/applications/auth/provider/PhabricatorTwitterAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuth1Twitter 4 - extends PhabricatorAuthProviderOAuth1 { 3 + final class PhabricatorTwitterAuthProvider 4 + extends PhabricatorOAuth1AuthProvider { 5 5 6 6 public function getProviderName() { 7 7 return pht('Twitter'); ··· 25 25 } 26 26 27 27 protected function newOAuthAdapter() { 28 - return new PhutilAuthAdapterOAuthTwitter(); 28 + return new PhutilTwitterAuthAdapter(); 29 29 } 30 30 31 31 protected function getLoginIcon() {
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuth2.php src/applications/auth/provider/PhabricatorOAuth2AuthProvider.php
··· 1 1 <?php 2 2 3 - abstract class PhabricatorAuthProviderOAuth2 4 - extends PhabricatorAuthProviderOAuth { 3 + abstract class PhabricatorOAuth2AuthProvider 4 + extends PhabricatorOAuthAuthProvider { 5 5 6 6 const PROPERTY_APP_ID = 'oauth:app:id'; 7 7 const PROPERTY_APP_SECRET = 'oauth:app:secret'; ··· 15 15 } 16 16 17 17 18 - protected function configureAdapter(PhutilAuthAdapterOAuth $adapter) { 18 + protected function configureAdapter(PhutilOAuthAuthAdapter $adapter) { 19 19 $config = $this->getProviderConfig(); 20 20 $adapter->setClientID($config->getProperty(self::PROPERTY_APP_ID)); 21 21 $adapter->setClientSecret(
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuthAmazon.php src/applications/auth/provider/PhabricatorAmazonAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuthAmazon 4 - extends PhabricatorAuthProviderOAuth2 { 3 + final class PhabricatorAmazonAuthProvider 4 + extends PhabricatorOAuth2AuthProvider { 5 5 6 6 public function getProviderName() { 7 7 return pht('Amazon'); ··· 36 36 } 37 37 38 38 protected function newOAuthAdapter() { 39 - return new PhutilAuthAdapterOAuthAmazon(); 39 + return new PhutilAmazonAuthAdapter(); 40 40 } 41 41 42 42 protected function getLoginIcon() {
+3 -4
src/applications/auth/provider/PhabricatorAuthProviderOAuthAsana.php src/applications/auth/provider/PhabricatorAsanaAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuthAsana 4 - extends PhabricatorAuthProviderOAuth2 { 3 + final class PhabricatorAsanaAuthProvider extends PhabricatorOAuth2AuthProvider { 5 4 6 5 public function getProviderName() { 7 6 return pht('Asana'); ··· 28 27 } 29 28 30 29 protected function newOAuthAdapter() { 31 - return new PhutilAuthAdapterOAuthAsana(); 30 + return new PhutilAsanaAuthAdapter(); 32 31 } 33 32 34 33 protected function getLoginIcon() { ··· 39 38 $providers = self::getAllEnabledProviders(); 40 39 41 40 foreach ($providers as $provider) { 42 - if ($provider instanceof PhabricatorAuthProviderOAuthAsana) { 41 + if ($provider instanceof PhabricatorAsanaAuthProvider) { 43 42 return $provider; 44 43 } 45 44 }
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuthDisqus.php src/applications/auth/provider/PhabricatorDisqusAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuthDisqus 4 - extends PhabricatorAuthProviderOAuth2 { 3 + final class PhabricatorDisqusAuthProvider 4 + extends PhabricatorOAuth2AuthProvider { 5 5 6 6 public function getProviderName() { 7 7 return pht('Disqus'); ··· 26 26 } 27 27 28 28 protected function newOAuthAdapter() { 29 - return new PhutilAuthAdapterOAuthDisqus(); 29 + return new PhutilDisqusAuthAdapter(); 30 30 } 31 31 32 32 protected function getLoginIcon() {
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuthFacebook.php src/applications/auth/provider/PhabricatorFacebookAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuthFacebook 4 - extends PhabricatorAuthProviderOAuth2 { 3 + final class PhabricatorFacebookAuthProvider 4 + extends PhabricatorOAuth2AuthProvider { 5 5 6 6 const KEY_REQUIRE_SECURE = 'oauth:facebook:require-secure'; 7 7 ··· 39 39 $require_secure = $this->getProviderConfig()->getProperty( 40 40 self::KEY_REQUIRE_SECURE); 41 41 42 - return id(new PhutilAuthAdapterOAuthFacebook()) 42 + return id(new PhutilFacebookAuthAdapter()) 43 43 ->setRequireSecureBrowsing($require_secure); 44 44 } 45 45
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuthGitHub.php src/applications/auth/provider/PhabricatorGitHubAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuthGitHub 4 - extends PhabricatorAuthProviderOAuth2 { 3 + final class PhabricatorGitHubAuthProvider 4 + extends PhabricatorOAuth2AuthProvider { 5 5 6 6 public function getProviderName() { 7 7 return pht('GitHub'); ··· 29 29 } 30 30 31 31 protected function newOAuthAdapter() { 32 - return new PhutilAuthAdapterOAuthGitHub(); 32 + return new PhutilGitHubAuthAdapter(); 33 33 } 34 34 35 35 protected function getLoginIcon() {
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuthGoogle.php src/applications/auth/provider/PhabricatorGoogleAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuthGoogle 4 - extends PhabricatorAuthProviderOAuth2 { 3 + final class PhabricatorGoogleAuthProvider 4 + extends PhabricatorOAuth2AuthProvider { 5 5 6 6 public function getProviderName() { 7 7 return pht('Google'); ··· 33 33 } 34 34 35 35 protected function newOAuthAdapter() { 36 - return new PhutilAuthAdapterOAuthGoogle(); 36 + return new PhutilGoogleAuthAdapter(); 37 37 } 38 38 39 39 protected function getLoginIcon() {
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuthTwitch.php src/applications/auth/provider/PhabricatorTwitchAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuthTwitch 4 - extends PhabricatorAuthProviderOAuth2 { 3 + final class PhabricatorTwitchAuthProvider 4 + extends PhabricatorOAuth2AuthProvider { 5 5 6 6 public function getProviderName() { 7 7 return pht('Twitch.tv'); ··· 26 26 } 27 27 28 28 protected function newOAuthAdapter() { 29 - return new PhutilAuthAdapterOAuthTwitch(); 29 + return new PhutilTwitchAuthAdapter(); 30 30 } 31 31 32 32 protected function getLoginIcon() {
+3 -3
src/applications/auth/provider/PhabricatorAuthProviderOAuthWordPress.php src/applications/auth/provider/PhabricatorWordPressAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderOAuthWordPress 4 - extends PhabricatorAuthProviderOAuth2 { 3 + final class PhabricatorWordPressAuthProvider 4 + extends PhabricatorOAuth2AuthProvider { 5 5 6 6 public function getProviderName() { 7 7 return pht('WordPress.com'); ··· 29 29 } 30 30 31 31 protected function newOAuthAdapter() { 32 - return new PhutilAuthAdapterOAuthWordPress(); 32 + return new PhutilWordPressAuthAdapter(); 33 33 } 34 34 35 35 protected function getLoginIcon() {
+1 -2
src/applications/auth/provider/PhabricatorAuthProviderPassword.php src/applications/auth/provider/PhabricatorPasswordAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderPassword 4 - extends PhabricatorAuthProvider { 3 + final class PhabricatorPasswordAuthProvider extends PhabricatorAuthProvider { 5 4 6 5 private $adapter; 7 6
+2 -3
src/applications/auth/provider/PhabricatorAuthProviderPersona.php src/applications/auth/provider/PhabricatorPersonaAuthProvider.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthProviderPersona 4 - extends PhabricatorAuthProvider { 3 + final class PhabricatorPersonaAuthProvider extends PhabricatorAuthProvider { 5 4 6 5 private $adapter; 7 6 ··· 16 15 17 16 public function getAdapter() { 18 17 if (!$this->adapter) { 19 - $adapter = new PhutilAuthAdapterPersona(); 18 + $adapter = new PhutilPersonaAuthAdapter(); 20 19 $this->adapter = $adapter; 21 20 } 22 21 return $this->adapter;