-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QuickBooks: Add OAuth2 authentication flow (#285)
Our current QuickBooks authentication uses OAuth 1.0, however Intuit is deprecating that method on December 17th in favor of OAuth 2.0. This adds tools to authenticate with OAuth 2.0, using Intuit's QuickBooks V3 PHP SDK. This will also set us up for using more of the SDK's functionality in the future for improvements to our payments and reporting. Fixes #283
- Loading branch information
1 parent
55064b0
commit 0383873
Showing
9 changed files
with
733 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
define( 'CUSTOM_USER_TABLE', 'wc_users' ); | ||
define( 'CUSTOM_USER_META_TABLE', 'wc_usermeta' ); | ||
|
||
$table_prefix = 'wc_'; | ||
$table_prefix = 'wc_'; // phpcs:ignore WordPress.WP.GlobalVariablesOverride | ||
|
||
/* | ||
* Multisite | ||
|
@@ -28,13 +28,13 @@ | |
$wcorg_domain_current_site = 'wordcamp.test'; | ||
} | ||
|
||
define( 'WP_ALLOW_MULTISITE', true ); // Temporary workaround for https://github.com/Automattic/wp-super-cache/issues/97 | ||
define( 'WP_ALLOW_MULTISITE', true ); // Temporary workaround for https://github.com/Automattic/wp-super-cache/issues/97. | ||
define( 'MULTISITE', true ); | ||
define( 'SUBDOMAIN_INSTALL', true ); | ||
define( 'DOMAIN_CURRENT_SITE', $wcorg_domain_current_site ); | ||
define( 'PATH_CURRENT_SITE', '/' ); | ||
define( 'SITE_ID_CURRENT_SITE', 1 ); | ||
define( 'BLOG_ID_CURRENT_SITE', 5 ); // central.wordcamp.test | ||
define( 'BLOG_ID_CURRENT_SITE', 5 ); // central.wordcamp.test. | ||
define( 'NOBLOGREDIRECT', 'https://central.wordcamp.test' ); | ||
define( 'SUNRISE', true ); | ||
define( 'CLI_HOSTNAME_OVERRIDE', 'wordcamp.test' ); | ||
|
@@ -48,7 +48,7 @@ | |
define( 'WP_DEBUG_DISPLAY', true ); | ||
define( 'SAVEQUERIES', true ); | ||
define( 'DIEONDBERROR', false ); | ||
define( 'SCRIPT_DEBUG', false ); // Temporarily disabled because of https://github.com/WordPress/gutenberg/issues/7897 / https://github.com/WordPress/gutenberg/issues/11360 | ||
define( 'SCRIPT_DEBUG', false ); // Temporarily disabled because of https://github.com/WordPress/gutenberg/issues/7897 / https://github.com/WordPress/gutenberg/issues/11360. | ||
define( 'JETPACK_DEV_DEBUG', true ); | ||
|
||
|
||
|
@@ -89,7 +89,7 @@ | |
define( 'EMAIL_CENTRAL_SUPPORT', '[email protected]' ); | ||
|
||
$trusted_deputies = array( | ||
3, // role-tester | ||
3, // role-tester. | ||
); | ||
|
||
|
||
|
@@ -108,6 +108,11 @@ | |
define( 'WORDCAMP_QBO_CONSUMER_SECRET', '' ); | ||
define( 'WORDCAMP_QBO_HMAC_KEY', '' ); | ||
|
||
define( 'WORDCAMP_SANDBOX_QBO_CLIENT_ID', '' ); | ||
define( 'WORDCAMP_SANDBOX_QBO_CLIENT_SECRET', '' ); | ||
define( 'WORDCAMP_PRODUCTION_QBO_CLIENT_ID', '' ); | ||
define( 'WORDCAMP_PRODUCTION_QBO_CLIENT_SECRET', '' ); | ||
|
||
define( 'REMOTE_CSS_GITHUB_ID', '' ); | ||
define( 'REMOTE_CSS_GITHUB_SECRET', '' ); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.