QuickBooks OAuth Callback
✅ OAuth authorization successful!';
echo 'Copy these values and provide them to the MCP server:
';
echo 'Authorization Code:
';
echo '' . $code . '
';
echo 'Realm ID:
';
echo '' . $realmId . '
';
if ($state) {
echo 'State (for reference):
';
echo '' . $state . '
';
}
echo 'Next step: Call the qbo_authenticate tool again with these values.
';
} elseif (isset($_GET['error'])) {
$error = htmlspecialchars($_GET['error']);
$error_description = isset($_GET['error_description']) ? htmlspecialchars($_GET['error_description']) : '';
echo '❌ OAuth Error: ' . $error . '
';
if ($error_description) {
echo 'Description: ' . $error_description . '
';
}
} else {
echo '❌ Missing required parameters. Expected: code and realmId
';
echo 'Received parameters:
';
echo '';
foreach ($_GET as $key => $value) {
echo '- ' . htmlspecialchars($key) . ' = ' . htmlspecialchars($value) . '
';
}
echo '
';
}
?>
This is the OAuth callback endpoint for QuickBooks MCP server integration.