UNPKG

adpa-enterprise-framework-automation

Version:

Modular, standards-compliant Node.js/TypeScript automation framework for enterprise requirements, project, and data management. Provides CLI and API for BABOK v3, PMBOK 7th Edition, and DMBOK 2.0 (in progress). Production-ready Express.js API with TypeSpe

106 lines (74 loc) โ€ข 4 kB
# ๐Ÿ” OAuth 2.0 Configuration for ADPA Confluence Integration ## ๐Ÿ“‹ What You Need to Update in Your .env File Since you have **OAuth 2.0 Client ID and Secret** from the Confluence Developer console, you need to replace the placeholder values with your actual credentials. ## ๐Ÿ”ง Step-by-Step Configuration ### **Step 1: Get Your OAuth 2.0 Credentials** From your Confluence Developer console (https://developer.atlassian.com/console/myapps/), find your ADPA application and copy: 1. **Client ID** - Usually looks like: `ari:cloud:ecosystem::app/12345678-1234-1234-1234-123456789abc` 2. **Client Secret** - Usually looks like: `ATOAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` ### **Step 2: Update Your .env File** Replace these lines in your `.env` file: ```env # REPLACE THESE WITH YOUR ACTUAL VALUES: CONFLUENCE_CLIENT_ID=your_actual_client_id_from_developer_console CONFLUENCE_CLIENT_SECRET=your_actual_client_secret_from_developer_console ``` **With your real values:** ```env # EXAMPLE (use your actual values): CONFLUENCE_CLIENT_ID=ari:cloud:ecosystem::app/12345678-1234-1234-1234-123456789abc CONFLUENCE_CLIENT_SECRET=ATOAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` ### **Step 3: Verify Your Callback URL** In your Confluence Developer console, make sure you have this callback URL configured: ``` http://localhost:3000/callback ``` ## ๐Ÿ†š **Difference Between API Token vs OAuth 2.0** | Aspect | API Token (Old) | OAuth 2.0 (New) | |--------|----------------|------------------| | **Authentication** | Basic Auth with email + token | Bearer token after OAuth flow | | **Setup** | Simple - just token | More complex - requires app registration | | **Security** | User-level permissions | App-level permissions with user consent | | **Future Support** | Being phased out | Preferred method | | **Expiration** | Manual token management | Automatic token refresh | ## ๐Ÿ”„ **What We Need to Change** Since you have OAuth 2.0 credentials, we need to: 1. โœ… **Update .env with your Client ID/Secret** (you do this) 2. ๐Ÿ”ง **Update ConfluencePublisher to use OAuth 2.0** (I'll do this) 3. ๐ŸŒ **Add OAuth flow handling** (I'll implement this) 4. ๐Ÿงช **Test the new authentication** (we'll do together) ## ๐Ÿ“ **Your Action Items** ### **Immediate (Now):** 1. Copy your **Client ID** from Developer console 2. Copy your **Client Secret** from Developer console 3. Replace the placeholder values in your `.env` file ### **Example .env Update:** ```env # Before (placeholder): CONFLUENCE_CLIENT_ID=your_actual_client_id_from_developer_console CONFLUENCE_CLIENT_SECRET=your_actual_client_secret_from_developer_console # After (your real values): CONFLUENCE_CLIENT_ID=ari:cloud:ecosystem::app/a1b2c3d4-e5f6-7890-abcd-ef1234567890 CONFLUENCE_CLIENT_SECRET=ATOA12345678901234567890abcdefghijklmnopqrstuvwxyz ``` ## ๐Ÿš€ **Next Steps After You Update .env** Once you update your `.env` file with the real Client ID and Secret: 1. **Tell me** - So I can update the Confluence integration code 2. **I'll implement OAuth 2.0 flow** - Update ConfluencePublisher for OAuth 3. **We'll test together** - Verify the OAuth authentication works 4. **Start publishing** - Use the new OAuth-based integration ## ๐Ÿ” **How to Find Your Credentials** 1. Go to: https://developer.atlassian.com/console/myapps/ 2. Find your **ADPA** application 3. Click on it to open details 4. Look for: - **Client ID** (in Settings or Overview) - **Client Secret** (in Settings, may need to regenerate) ## โš ๏ธ **Important Security Notes** - โœ… **Never commit** Client Secret to version control - โœ… **Keep .env** in your .gitignore - โœ… **Use different credentials** for dev/prod environments - โœ… **Regenerate secrets** if compromised --- **Ready?** Update your `.env` file with your real Client ID and Secret, then let me know so I can update the integration code to use OAuth 2.0!