Page MenuHomePhabricator

D9998.diff
No OneTemporary

D9998.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -80,6 +80,7 @@
'PhutilAWSFuture' => 'future/aws/PhutilAWSFuture.php',
'PhutilAWSS3Future' => 'future/aws/PhutilAWSS3Future.php',
'PhutilAggregateException' => 'error/PhutilAggregateException.php',
+ 'PhutilAmazonAuthAdapter' => 'auth/PhutilAmazonAuthAdapter.php',
'PhutilArgumentParser' => 'parser/argument/PhutilArgumentParser.php',
'PhutilArgumentParserException' => 'parser/argument/exception/PhutilArgumentParserException.php',
'PhutilArgumentParserTestCase' => 'parser/argument/__tests__/PhutilArgumentParserTestCase.php',
@@ -91,29 +92,15 @@
'PhutilArray' => 'utils/PhutilArray.php',
'PhutilArrayTestCase' => 'utils/__tests__/PhutilArrayTestCase.php',
'PhutilArrayWithDefaultValue' => 'utils/PhutilArrayWithDefaultValue.php',
+ 'PhutilAsanaAuthAdapter' => 'auth/PhutilAsanaAuthAdapter.php',
'PhutilAsanaFuture' => 'future/asana/PhutilAsanaFuture.php',
'PhutilAuthAdapter' => 'auth/PhutilAuthAdapter.php',
- 'PhutilAuthAdapterEmpty' => 'auth/PhutilAuthAdapterEmpty.php',
- 'PhutilAuthAdapterLDAP' => 'auth/PhutilAuthAdapterLDAP.php',
- 'PhutilAuthAdapterOAuth' => 'auth/PhutilAuthAdapterOAuth.php',
- 'PhutilAuthAdapterOAuth1' => 'auth/PhutilAuthAdapterOAuth1.php',
- 'PhutilAuthAdapterOAuthAmazon' => 'auth/PhutilAuthAdapterOAuthAmazon.php',
- 'PhutilAuthAdapterOAuthAsana' => 'auth/PhutilAuthAdapterOAuthAsana.php',
- 'PhutilAuthAdapterOAuthBitbucket' => 'auth/PhutilAuthAdapterOAuthBitbucket.php',
- 'PhutilAuthAdapterOAuthDisqus' => 'auth/PhutilAuthAdapterOAuthDisqus.php',
- 'PhutilAuthAdapterOAuthFacebook' => 'auth/PhutilAuthAdapterOAuthFacebook.php',
- 'PhutilAuthAdapterOAuthGitHub' => 'auth/PhutilAuthAdapterOAuthGitHub.php',
- 'PhutilAuthAdapterOAuthGoogle' => 'auth/PhutilAuthAdapterOAuthGoogle.php',
- 'PhutilAuthAdapterOAuthJIRA' => 'auth/PhutilAuthAdapterOAuthJIRA.php',
- 'PhutilAuthAdapterOAuthTwitch' => 'auth/PhutilAuthAdapterOAuthTwitch.php',
- 'PhutilAuthAdapterOAuthTwitter' => 'auth/PhutilAuthAdapterOAuthTwitter.php',
- 'PhutilAuthAdapterOAuthWordPress' => 'auth/PhutilAuthAdapterOAuthWordPress.php',
- 'PhutilAuthAdapterPersona' => 'auth/PhutilAuthAdapterPersona.php',
'PhutilAuthConfigurationException' => 'auth/exception/PhutilAuthConfigurationException.php',
'PhutilAuthCredentialException' => 'auth/exception/PhutilAuthCredentialException.php',
'PhutilAuthException' => 'auth/exception/PhutilAuthException.php',
'PhutilAuthUserAbortedException' => 'auth/exception/PhutilAuthUserAbortedException.php',
'PhutilBallOfPHP' => 'phage/util/PhutilBallOfPHP.php',
+ 'PhutilBitbucketAuthAdapter' => 'auth/PhutilBitbucketAuthAdapter.php',
'PhutilBootloader' => 'moduleutils/PhutilBootloader.php',
'PhutilBootloaderException' => 'moduleutils/PhutilBootloaderException.php',
'PhutilBufferedIterator' => 'utils/PhutilBufferedIterator.php',
@@ -151,6 +138,7 @@
'PhutilDeferredLogTestCase' => 'filesystem/__tests__/PhutilDeferredLogTestCase.php',
'PhutilDirectedScalarGraph' => 'utils/PhutilDirectedScalarGraph.php',
'PhutilDirectoryFixture' => 'filesystem/PhutilDirectoryFixture.php',
+ 'PhutilDisqusAuthAdapter' => 'auth/PhutilDisqusAuthAdapter.php',
'PhutilDivinerSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilDivinerSyntaxHighlighter.php',
'PhutilDocblockParser' => 'parser/PhutilDocblockParser.php',
'PhutilDocblockParserTestCase' => 'parser/__tests__/PhutilDocblockParserTestCase.php',
@@ -158,6 +146,7 @@
'PhutilEditDistanceMatrixTestCase' => 'utils/__tests__/PhutilEditDistanceMatrixTestCase.php',
'PhutilEmailAddress' => 'parser/PhutilEmailAddress.php',
'PhutilEmailAddressTestCase' => 'parser/__tests__/PhutilEmailAddressTestCase.php',
+ 'PhutilEmptyAuthAdapter' => 'auth/PhutilEmptyAuthAdapter.php',
'PhutilErrorHandler' => 'error/PhutilErrorHandler.php',
'PhutilErrorHandlerTestCase' => 'error/__tests__/PhutilErrorHandlerTestCase.php',
'PhutilErrorTrap' => 'error/PhutilErrorTrap.php',
@@ -171,18 +160,22 @@
'PhutilExecChannel' => 'channel/PhutilExecChannel.php',
'PhutilExecPassthru' => 'future/exec/PhutilExecPassthru.php',
'PhutilExtensionsTestCase' => 'moduleutils/__tests__/PhutilExtensionsTestCase.php',
+ 'PhutilFacebookAuthAdapter' => 'auth/PhutilFacebookAuthAdapter.php',
'PhutilFatalDaemon' => 'daemon/torture/PhutilFatalDaemon.php',
'PhutilFileLock' => 'filesystem/PhutilFileLock.php',
'PhutilFileLockTestCase' => 'filesystem/__tests__/PhutilFileLockTestCase.php',
'PhutilFileTree' => 'filesystem/PhutilFileTree.php',
+ 'PhutilGitHubAuthAdapter' => 'auth/PhutilGitHubAuthAdapter.php',
'PhutilGitURI' => 'parser/PhutilGitURI.php',
'PhutilGitURITestCase' => 'parser/__tests__/PhutilGitURITestCase.php',
+ 'PhutilGoogleAuthAdapter' => 'auth/PhutilGoogleAuthAdapter.php',
'PhutilHangForeverDaemon' => 'daemon/torture/PhutilHangForeverDaemon.php',
'PhutilHelpArgumentWorkflow' => 'parser/argument/workflow/PhutilHelpArgumentWorkflow.php',
'PhutilHgsprintfTestCase' => 'xsprintf/__tests__/PhutilHgsprintfTestCase.php',
'PhutilInfrastructureTestCase' => '__tests__/PhutilInfrastructureTestCase.php',
'PhutilInteractiveEditor' => 'console/PhutilInteractiveEditor.php',
'PhutilInvisibleSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilInvisibleSyntaxHighlighter.php',
+ 'PhutilJIRAAuthAdapter' => 'auth/PhutilJIRAAuthAdapter.php',
'PhutilJSON' => 'parser/PhutilJSON.php',
'PhutilJSONParser' => 'parser/PhutilJSONParser.php',
'PhutilJSONParserException' => 'parser/exception/PhutilJSONParserException.php',
@@ -202,6 +195,7 @@
'PhutilKeyValueCacheProxy' => 'cache/PhutilKeyValueCacheProxy.php',
'PhutilKeyValueCacheStack' => 'cache/PhutilKeyValueCacheStack.php',
'PhutilKeyValueCacheTestCase' => 'cache/__tests__/PhutilKeyValueCacheTestCase.php',
+ 'PhutilLDAPAuthAdapter' => 'auth/PhutilLDAPAuthAdapter.php',
'PhutilLanguageGuesser' => 'parser/PhutilLanguageGuesser.php',
'PhutilLanguageGuesserTestCase' => 'parser/__tests__/PhutilLanguageGuesserTestCase.php',
'PhutilLexer' => 'lexer/PhutilLexer.php',
@@ -222,8 +216,10 @@
'PhutilModuleUtilsTestCase' => 'moduleutils/__tests__/PhutilModuleUtilsTestCase.php',
'PhutilNiceDaemon' => 'daemon/torture/PhutilNiceDaemon.php',
'PhutilNumber' => 'internationalization/PhutilNumber.php',
+ 'PhutilOAuth1AuthAdapter' => 'auth/PhutilOAuth1AuthAdapter.php',
'PhutilOAuth1Future' => 'future/oauth/PhutilOAuth1Future.php',
'PhutilOAuth1FutureTestCase' => 'future/oauth/__tests__/PhutilOAuth1FutureTestCase.php',
+ 'PhutilOAuthAuthAdapter' => 'auth/PhutilOAuthAuthAdapter.php',
'PhutilOpaqueEnvelope' => 'error/PhutilOpaqueEnvelope.php',
'PhutilOpaqueEnvelopeKey' => 'error/PhutilOpaqueEnvelopeKey.php',
'PhutilOpaqueEnvelopeTestCase' => 'error/__tests__/PhutilOpaqueEnvelopeTestCase.php',
@@ -245,6 +241,7 @@
'PhutilPayPalAPIFuture' => 'future/paypal/PhutilPayPalAPIFuture.php',
'PhutilPerson' => 'internationalization/PhutilPerson.php',
'PhutilPersonTest' => 'internationalization/__tests__/PhutilPersonTest.php',
+ 'PhutilPersonaAuthAdapter' => 'auth/PhutilPersonaAuthAdapter.php',
'PhutilPhobjectTestCase' => 'object/__tests__/PhutilPhobjectTestCase.php',
'PhutilProcessGroupDaemon' => 'daemon/torture/PhutilProcessGroupDaemon.php',
'PhutilProtocolChannel' => 'channel/PhutilProtocolChannel.php',
@@ -312,7 +309,9 @@
'PhutilTortureTestDaemon' => 'daemon/torture/PhutilTortureTestDaemon.php',
'PhutilTranslator' => 'internationalization/PhutilTranslator.php',
'PhutilTranslatorTestCase' => 'internationalization/__tests__/PhutilTranslatorTestCase.php',
+ 'PhutilTwitchAuthAdapter' => 'auth/PhutilTwitchAuthAdapter.php',
'PhutilTwitchFuture' => 'future/twitch/PhutilTwitchFuture.php',
+ 'PhutilTwitterAuthAdapter' => 'auth/PhutilTwitterAuthAdapter.php',
'PhutilTypeCheckException' => 'parser/exception/PhutilTypeCheckException.php',
'PhutilTypeExtraParametersException' => 'parser/exception/PhutilTypeExtraParametersException.php',
'PhutilTypeLexer' => 'lexer/PhutilTypeLexer.php',
@@ -325,6 +324,7 @@
'PhutilUTF8TestCase' => 'utils/__tests__/PhutilUTF8TestCase.php',
'PhutilUrisprintfTestCase' => 'xsprintf/__tests__/PhutilUrisprintfTestCase.php',
'PhutilUtilsTestCase' => 'utils/__tests__/PhutilUtilsTestCase.php',
+ 'PhutilWordPressAuthAdapter' => 'auth/PhutilWordPressAuthAdapter.php',
'PhutilWordPressFuture' => 'future/wordpress/PhutilWordPressFuture.php',
'PhutilXHPASTSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilXHPASTSyntaxHighlighter.php',
'PhutilXHPASTSyntaxHighlighterFuture' => 'markup/syntax/highlighter/xhpast/PhutilXHPASTSyntaxHighlighterFuture.php',
@@ -524,6 +524,7 @@
'PhutilAWSFuture' => 'FutureProxy',
'PhutilAWSS3Future' => 'PhutilAWSFuture',
'PhutilAggregateException' => 'Exception',
+ 'PhutilAmazonAuthAdapter' => 'PhutilOAuthAuthAdapter',
'PhutilArgumentParserException' => 'Exception',
'PhutilArgumentParserTestCase' => 'PhutilTestCase',
'PhutilArgumentSpecificationException' => 'PhutilArgumentParserException',
@@ -537,27 +538,13 @@
),
'PhutilArrayTestCase' => 'PhutilTestCase',
'PhutilArrayWithDefaultValue' => 'PhutilArray',
+ 'PhutilAsanaAuthAdapter' => 'PhutilOAuthAuthAdapter',
'PhutilAsanaFuture' => 'FutureProxy',
- 'PhutilAuthAdapterEmpty' => 'PhutilAuthAdapter',
- 'PhutilAuthAdapterLDAP' => 'PhutilAuthAdapter',
- 'PhutilAuthAdapterOAuth' => 'PhutilAuthAdapter',
- 'PhutilAuthAdapterOAuth1' => 'PhutilAuthAdapter',
- 'PhutilAuthAdapterOAuthAmazon' => 'PhutilAuthAdapterOAuth',
- 'PhutilAuthAdapterOAuthAsana' => 'PhutilAuthAdapterOAuth',
- 'PhutilAuthAdapterOAuthBitbucket' => 'PhutilAuthAdapterOAuth1',
- 'PhutilAuthAdapterOAuthDisqus' => 'PhutilAuthAdapterOAuth',
- 'PhutilAuthAdapterOAuthFacebook' => 'PhutilAuthAdapterOAuth',
- 'PhutilAuthAdapterOAuthGitHub' => 'PhutilAuthAdapterOAuth',
- 'PhutilAuthAdapterOAuthGoogle' => 'PhutilAuthAdapterOAuth',
- 'PhutilAuthAdapterOAuthJIRA' => 'PhutilAuthAdapterOAuth1',
- 'PhutilAuthAdapterOAuthTwitch' => 'PhutilAuthAdapterOAuth',
- 'PhutilAuthAdapterOAuthTwitter' => 'PhutilAuthAdapterOAuth1',
- 'PhutilAuthAdapterOAuthWordPress' => 'PhutilAuthAdapterOAuth',
- 'PhutilAuthAdapterPersona' => 'PhutilAuthAdapter',
'PhutilAuthConfigurationException' => 'PhutilAuthException',
'PhutilAuthCredentialException' => 'PhutilAuthException',
'PhutilAuthException' => 'Exception',
'PhutilAuthUserAbortedException' => 'PhutilAuthException',
+ 'PhutilBitbucketAuthAdapter' => 'PhutilOAuth1AuthAdapter',
'PhutilBootloaderException' => 'Exception',
'PhutilBufferedIterator' => 'Iterator',
'PhutilBufferedIteratorTestCase' => 'PhutilTestCase',
@@ -581,9 +568,11 @@
'PhutilDefaultSyntaxHighlighterEngineTestCase' => 'PhutilTestCase',
'PhutilDeferredLogTestCase' => 'PhutilTestCase',
'PhutilDirectedScalarGraph' => 'AbstractDirectedGraph',
+ 'PhutilDisqusAuthAdapter' => 'PhutilOAuthAuthAdapter',
'PhutilDocblockParserTestCase' => 'PhutilTestCase',
'PhutilEditDistanceMatrixTestCase' => 'PhutilTestCase',
'PhutilEmailAddressTestCase' => 'PhutilTestCase',
+ 'PhutilEmptyAuthAdapter' => 'PhutilAuthAdapter',
'PhutilErrorHandlerTestCase' => 'PhutilTestCase',
'PhutilErrorTrap' => 'Phobject',
'PhutilEventType' => 'PhutilEventConstants',
@@ -592,14 +581,18 @@
'PhutilExecChannel' => 'PhutilChannel',
'PhutilExecPassthru' => 'Phobject',
'PhutilExtensionsTestCase' => 'PhutilTestCase',
+ 'PhutilFacebookAuthAdapter' => 'PhutilOAuthAuthAdapter',
'PhutilFatalDaemon' => 'PhutilTortureTestDaemon',
'PhutilFileLock' => 'PhutilLock',
'PhutilFileLockTestCase' => 'PhutilTestCase',
+ 'PhutilGitHubAuthAdapter' => 'PhutilOAuthAuthAdapter',
'PhutilGitURITestCase' => 'PhutilTestCase',
+ 'PhutilGoogleAuthAdapter' => 'PhutilOAuthAuthAdapter',
'PhutilHangForeverDaemon' => 'PhutilTortureTestDaemon',
'PhutilHelpArgumentWorkflow' => 'PhutilArgumentWorkflow',
'PhutilHgsprintfTestCase' => 'PhutilTestCase',
'PhutilInfrastructureTestCase' => 'PhutilTestCase',
+ 'PhutilJIRAAuthAdapter' => 'PhutilOAuth1AuthAdapter',
'PhutilJSONParserException' => 'Exception',
'PhutilJSONParserTestCase' => 'PhutilTestCase',
'PhutilJSONProtocolChannel' => 'PhutilProtocolChannel',
@@ -616,6 +609,7 @@
'PhutilKeyValueCacheProxy' => 'PhutilKeyValueCache',
'PhutilKeyValueCacheStack' => 'PhutilKeyValueCache',
'PhutilKeyValueCacheTestCase' => 'PhutilTestCase',
+ 'PhutilLDAPAuthAdapter' => 'PhutilAuthAdapter',
'PhutilLanguageGuesserTestCase' => 'PhutilTestCase',
'PhutilLexerSyntaxHighlighter' => 'PhutilSyntaxHighlighter',
'PhutilLibraryConflictException' => 'Exception',
@@ -629,8 +623,10 @@
'PhutilMissingSymbolException' => 'Exception',
'PhutilModuleUtilsTestCase' => 'PhutilTestCase',
'PhutilNiceDaemon' => 'PhutilTortureTestDaemon',
+ 'PhutilOAuth1AuthAdapter' => 'PhutilAuthAdapter',
'PhutilOAuth1Future' => 'FutureProxy',
'PhutilOAuth1FutureTestCase' => 'PhutilTestCase',
+ 'PhutilOAuthAuthAdapter' => 'PhutilAuthAdapter',
'PhutilOpaqueEnvelopeTestCase' => 'PhutilTestCase',
'PhutilPHPCodeSnippetContextFreeGrammar' => 'PhutilCLikeCodeSnippetContextFreeGrammar',
'PhutilPHPFragmentLexer' => 'PhutilLexer',
@@ -648,6 +644,7 @@
'PhutilParserGeneratorUnreachableTerminalException' => 'PhutilParserGeneratorException',
'PhutilPayPalAPIFuture' => 'FutureProxy',
'PhutilPersonTest' => 'PhutilPerson',
+ 'PhutilPersonaAuthAdapter' => 'PhutilAuthAdapter',
'PhutilPhobjectTestCase' => 'PhutilTestCase',
'PhutilProcessGroupDaemon' => 'PhutilTortureTestDaemon',
'PhutilProtocolChannel' => 'PhutilChannelChannel',
@@ -696,7 +693,9 @@
'PhutilTestPhobject' => 'Phobject',
'PhutilTortureTestDaemon' => 'PhutilDaemon',
'PhutilTranslatorTestCase' => 'PhutilTestCase',
+ 'PhutilTwitchAuthAdapter' => 'PhutilOAuthAuthAdapter',
'PhutilTwitchFuture' => 'FutureProxy',
+ 'PhutilTwitterAuthAdapter' => 'PhutilOAuth1AuthAdapter',
'PhutilTypeCheckException' => 'Exception',
'PhutilTypeExtraParametersException' => 'Exception',
'PhutilTypeLexer' => 'PhutilLexer',
@@ -707,6 +706,7 @@
'PhutilUTF8TestCase' => 'PhutilTestCase',
'PhutilUrisprintfTestCase' => 'PhutilTestCase',
'PhutilUtilsTestCase' => 'PhutilTestCase',
+ 'PhutilWordPressAuthAdapter' => 'PhutilOAuthAuthAdapter',
'PhutilWordPressFuture' => 'FutureProxy',
'PhutilXHPASTSyntaxHighlighterFuture' => 'FutureProxy',
'PhutilXHPASTSyntaxHighlighterTestCase' => 'PhutilTestCase',
diff --git a/src/auth/PhutilAuthAdapterOAuthAmazon.php b/src/auth/PhutilAmazonAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthAmazon.php
rename to src/auth/PhutilAmazonAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthAmazon.php
+++ b/src/auth/PhutilAmazonAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Amazon OAuth2.
*/
-final class PhutilAuthAdapterOAuthAmazon extends PhutilAuthAdapterOAuth {
+final class PhutilAmazonAuthAdapter extends PhutilOAuthAuthAdapter {
public function getAdapterType() {
return 'amazon';
diff --git a/src/auth/PhutilAuthAdapterOAuthAsana.php b/src/auth/PhutilAsanaAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthAsana.php
rename to src/auth/PhutilAsanaAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthAsana.php
+++ b/src/auth/PhutilAsanaAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Asana OAuth2.
*/
-final class PhutilAuthAdapterOAuthAsana extends PhutilAuthAdapterOAuth {
+final class PhutilAsanaAuthAdapter extends PhutilOAuthAuthAdapter {
public function getAdapterType() {
return 'asana';
diff --git a/src/auth/PhutilAuthAdapterOAuthBitbucket.php b/src/auth/PhutilBitbucketAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthBitbucket.php
rename to src/auth/PhutilBitbucketAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthBitbucket.php
+++ b/src/auth/PhutilBitbucketAuthAdapter.php
@@ -1,6 +1,6 @@
<?php
-final class PhutilAuthAdapterOAuthBitbucket extends PhutilAuthAdapterOAuth1 {
+final class PhutilBitbucketAuthAdapter extends PhutilOAuth1AuthAdapter {
private $userInfo;
diff --git a/src/auth/PhutilAuthAdapterOAuthDisqus.php b/src/auth/PhutilDisqusAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthDisqus.php
rename to src/auth/PhutilDisqusAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthDisqus.php
+++ b/src/auth/PhutilDisqusAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Disqus OAuth2.
*/
-final class PhutilAuthAdapterOAuthDisqus extends PhutilAuthAdapterOAuth {
+final class PhutilDisqusAuthAdapter extends PhutilOAuthAuthAdapter {
public function getAdapterType() {
return 'disqus';
diff --git a/src/auth/PhutilAuthAdapterEmpty.php b/src/auth/PhutilEmptyAuthAdapter.php
rename from src/auth/PhutilAuthAdapterEmpty.php
rename to src/auth/PhutilEmptyAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterEmpty.php
+++ b/src/auth/PhutilEmptyAuthAdapter.php
@@ -6,7 +6,7 @@
* This adapter can be used when you need an adapter for some technical reason
* but it doesn't make sense to put logic inside it.
*/
-final class PhutilAuthAdapterEmpty extends PhutilAuthAdapter {
+final class PhutilEmptyAuthAdapter extends PhutilAuthAdapter {
private $accountID;
private $adapterType;
diff --git a/src/auth/PhutilAuthAdapterOAuthFacebook.php b/src/auth/PhutilFacebookAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthFacebook.php
rename to src/auth/PhutilFacebookAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthFacebook.php
+++ b/src/auth/PhutilFacebookAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Facebook OAuth2.
*/
-final class PhutilAuthAdapterOAuthFacebook extends PhutilAuthAdapterOAuth {
+final class PhutilFacebookAuthAdapter extends PhutilOAuthAuthAdapter {
private $requireSecureBrowsing;
diff --git a/src/auth/PhutilAuthAdapterOAuthGitHub.php b/src/auth/PhutilGitHubAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthGitHub.php
rename to src/auth/PhutilGitHubAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthGitHub.php
+++ b/src/auth/PhutilGitHubAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Github OAuth2.
*/
-final class PhutilAuthAdapterOAuthGitHub extends PhutilAuthAdapterOAuth {
+final class PhutilGitHubAuthAdapter extends PhutilOAuthAuthAdapter {
public function getAdapterType() {
return 'github';
@@ -56,7 +56,7 @@
$future = new HTTPSFuture($uri);
// NOTE: GitHub requires a User-Agent string.
- $future->addHeader('User-Agent', 'PhutilAuthAdapterOAuthGitHub');
+ $future->addHeader('User-Agent', 'PhutilGitHubAuthAdapter');
list($body) = $future->resolvex();
diff --git a/src/auth/PhutilAuthAdapterOAuthGoogle.php b/src/auth/PhutilGoogleAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthGoogle.php
rename to src/auth/PhutilGoogleAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthGoogle.php
+++ b/src/auth/PhutilGoogleAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Google OAuth2.
*/
-final class PhutilAuthAdapterOAuthGoogle extends PhutilAuthAdapterOAuth {
+final class PhutilGoogleAuthAdapter extends PhutilOAuthAuthAdapter {
public function getAdapterType() {
return 'google';
diff --git a/src/auth/PhutilAuthAdapterOAuthJIRA.php b/src/auth/PhutilJIRAAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthJIRA.php
rename to src/auth/PhutilJIRAAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthJIRA.php
+++ b/src/auth/PhutilJIRAAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for JIRA OAuth1.
*/
-final class PhutilAuthAdapterOAuthJIRA extends PhutilAuthAdapterOAuth1 {
+final class PhutilJIRAAuthAdapter extends PhutilOAuth1AuthAdapter {
// TODO: JIRA tokens expire (after 5 years) and we could surface and store
// that.
diff --git a/src/auth/PhutilAuthAdapterLDAP.php b/src/auth/PhutilLDAPAuthAdapter.php
rename from src/auth/PhutilAuthAdapterLDAP.php
rename to src/auth/PhutilLDAPAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterLDAP.php
+++ b/src/auth/PhutilLDAPAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Retrieve identify information from LDAP accounts.
*/
-final class PhutilAuthAdapterLDAP extends PhutilAuthAdapter {
+final class PhutilLDAPAuthAdapter extends PhutilAuthAdapter {
private $hostname;
private $port = 389;
diff --git a/src/auth/PhutilAuthAdapterOAuth1.php b/src/auth/PhutilOAuth1AuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuth1.php
rename to src/auth/PhutilOAuth1AuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuth1.php
+++ b/src/auth/PhutilOAuth1AuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Abstract adapter for OAuth1 providers.
*/
-abstract class PhutilAuthAdapterOAuth1 extends PhutilAuthAdapter {
+abstract class PhutilOAuth1AuthAdapter extends PhutilAuthAdapter {
private $consumerKey;
private $consumerSecret;
diff --git a/src/auth/PhutilAuthAdapterOAuth.php b/src/auth/PhutilOAuthAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuth.php
rename to src/auth/PhutilOAuthAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuth.php
+++ b/src/auth/PhutilOAuthAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Abstract adapter for OAuth2 providers.
*/
-abstract class PhutilAuthAdapterOAuth extends PhutilAuthAdapter {
+abstract class PhutilOAuthAuthAdapter extends PhutilAuthAdapter {
private $clientID;
private $clientSecret;
diff --git a/src/auth/PhutilAuthAdapterPersona.php b/src/auth/PhutilPersonaAuthAdapter.php
rename from src/auth/PhutilAuthAdapterPersona.php
rename to src/auth/PhutilPersonaAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterPersona.php
+++ b/src/auth/PhutilPersonaAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Mozilla's Persona.
*/
-final class PhutilAuthAdapterPersona extends PhutilAuthAdapter {
+final class PhutilPersonaAuthAdapter extends PhutilAuthAdapter {
private $audience;
private $assertion;
diff --git a/src/auth/PhutilAuthAdapterOAuthTwitch.php b/src/auth/PhutilTwitchAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthTwitch.php
rename to src/auth/PhutilTwitchAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthTwitch.php
+++ b/src/auth/PhutilTwitchAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Twitch.tv OAuth2.
*/
-final class PhutilAuthAdapterOAuthTwitch extends PhutilAuthAdapterOAuth {
+final class PhutilTwitchAuthAdapter extends PhutilOAuthAuthAdapter {
public function getAdapterType() {
return 'twitch';
diff --git a/src/auth/PhutilAuthAdapterOAuthTwitter.php b/src/auth/PhutilTwitterAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthTwitter.php
rename to src/auth/PhutilTwitterAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthTwitter.php
+++ b/src/auth/PhutilTwitterAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for Twitter OAuth1.
*/
-final class PhutilAuthAdapterOAuthTwitter extends PhutilAuthAdapterOAuth1 {
+final class PhutilTwitterAuthAdapter extends PhutilOAuth1AuthAdapter {
private $userInfo;
@@ -70,5 +70,4 @@
return $this->userInfo;
}
-
}
diff --git a/src/auth/PhutilAuthAdapterOAuthWordPress.php b/src/auth/PhutilWordPressAuthAdapter.php
rename from src/auth/PhutilAuthAdapterOAuthWordPress.php
rename to src/auth/PhutilWordPressAuthAdapter.php
--- a/src/auth/PhutilAuthAdapterOAuthWordPress.php
+++ b/src/auth/PhutilWordPressAuthAdapter.php
@@ -3,7 +3,7 @@
/**
* Authentication adapter for WordPress.com OAuth2.
*/
-final class PhutilAuthAdapterOAuthWordPress extends PhutilAuthAdapterOAuth {
+final class PhutilWordPressAuthAdapter extends PhutilOAuthAuthAdapter {
public function getAdapterType() {
return 'wordpress';
diff --git a/src/auth/exception/PhutilAuthConfigurationException.php b/src/auth/exception/PhutilAuthConfigurationException.php
--- a/src/auth/exception/PhutilAuthConfigurationException.php
+++ b/src/auth/exception/PhutilAuthConfigurationException.php
@@ -3,6 +3,4 @@
/**
* Authentication is not configured correctly.
*/
-final class PhutilAuthConfigurationException extends PhutilAuthException {
-
-}
+final class PhutilAuthConfigurationException extends PhutilAuthException {}
diff --git a/src/auth/exception/PhutilAuthCredentialException.php b/src/auth/exception/PhutilAuthCredentialException.php
--- a/src/auth/exception/PhutilAuthCredentialException.php
+++ b/src/auth/exception/PhutilAuthCredentialException.php
@@ -3,6 +3,4 @@
/**
* The user provided invalid credentials.
*/
-final class PhutilAuthCredentialException extends PhutilAuthException {
-
-}
+final class PhutilAuthCredentialException extends PhutilAuthException {}
diff --git a/src/auth/exception/PhutilAuthException.php b/src/auth/exception/PhutilAuthException.php
--- a/src/auth/exception/PhutilAuthException.php
+++ b/src/auth/exception/PhutilAuthException.php
@@ -4,6 +4,4 @@
* Abstract exception class for errors encountered during authentication
* workflows.
*/
-abstract class PhutilAuthException extends Exception {
-
-}
+abstract class PhutilAuthException extends Exception {}
diff --git a/src/auth/exception/PhutilAuthUserAbortedException.php b/src/auth/exception/PhutilAuthUserAbortedException.php
--- a/src/auth/exception/PhutilAuthUserAbortedException.php
+++ b/src/auth/exception/PhutilAuthUserAbortedException.php
@@ -11,6 +11,4 @@
* If an adapter detects that the user has explicitly bailed out of the
* workflow, it should throw this exception.
*/
-final class PhutilAuthUserAbortedException extends PhutilAuthException {
-
-}
+final class PhutilAuthUserAbortedException extends PhutilAuthException {}

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 27, 12:51 PM (3 w, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7705669
Default Alt Text
D9998.diff (25 KB)

Event Timeline