Feat/issue 968 quickbooks oauth#1138
Conversation
|
@Shadow-MMN Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 29318208 | Triggered | Generic Password | a4ee975 | src/stellar/sep02.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Description
This PR implements a secure OAuth 2.0 Authorization Code flow for QuickBooks Online. It ensures all sensitive tokens are encrypted at rest using AES-256-GCM and introduces automated token maintenance via a BullMQ refresh worker that triggers 10 minutes before expiry.
Related Issue
Fixes #968
Type of Change
Changes Made
the database.
Testing
Checklist
Screenshots (if applicable)
Additional Notes
Ensure that QUICKBOOKS_CLIENT_ID, QUICKBOOKS_CLIENT_SECRET, and QUICKBOOKS_REDIRECT_URI are added to your local .env file before testing the live flow. The redirect URI must match the one configured in your Intuit Developer Portal.