Skip to content

πŸ” Beautiful wizard to simplify Twitter OAuth 2.0 setup with Make.com. Auto-generates ready-to-use scenarios with PKCE security.

License

Notifications You must be signed in to change notification settings

avisangle/make-twitter-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Twitter OAuth Setup Wizard for Make.com

A beautiful, user-friendly web application that simplifies Twitter OAuth 2.0 setup with Make.com automation. This wizard guides you through the entire OAuth flow and automatically generates a ready-to-use Make.com scenario.

License Status Live Demo

🌐 Live Application

πŸ‘‰ Launch the Wizard πŸ‘ˆ

No installation needed! Use the live web application directly in your browser.

✨ Features

  • 🎯 4-Step Wizard Interface - Intuitive, guided flow with visual progress tracking
  • πŸ”’ PKCE Security - Implements OAuth 2.0 with Proof Key for Code Exchange (SHA-256)
  • ⚑ Auto-Download - Scenario JSON automatically downloads with pre-filled auth code
  • πŸ“¦ Ready-to-Import - Generated scenario is immediately ready to import into Make.com
  • ⏱️ 30-Second Execution - Optimized workflow to beat the authorization code expiration
  • 🎨 Beautiful UI - Modern gradient design with responsive layout
  • πŸš€ One-Click Twitter Post - Test your integration with an automatic tweet

πŸš€ Quick Start

Option 1: Use the Live App (Recommended)

Simply visit https://avisangle.github.io/make-twitter-oauth/ in your browser and start using the wizard immediately!

Option 2: Run Locally

  1. Clone the repository:

    git clone https://github.com/avisangle/make-twitter-oauth.git
    cd make-twitter-oauth
  2. Open in browser:

    open index.html

    Or simply double-click index.html to open it in your default browser.

  3. No build process required! - Pure HTML, CSS, and JavaScript

πŸ“‹ Prerequisites

Before using this tool, you need:

  1. Twitter Developer Account

    • Create an app at Twitter Developer Portal
    • Get your Client ID and Client Secret
    • Set redirect URL to: https://www.make.com/oauth/cb/oauth2
  2. Make.com Account

    • Free account at Make.com
    • Ability to create and import scenarios

🎯 How It Works

Step 1: Enter Credentials

  • Input your Twitter app's Client ID and Client Secret
  • PKCE parameters (code_verifier, code_challenge) are auto-generated using SHA-256

Step 2: Review PKCE Parameters

  • View the generated security parameters
  • System prepares the authorization URL

Step 3: Authorize with Twitter

  • Click to open Twitter authorization in a new tab
  • Log in and authorize the application
  • Copy the redirect URL (even though it shows "Resource not found" - this is expected!)

Step 4: Complete Setup

  • Paste the redirect URL
  • Auth code is automatically extracted
  • Scenario JSON downloads immediately with pre-filled auth code
  • Import to Make.com and run within 30 seconds!

πŸ“¦ Generated Scenario

The auto-generated Make.com scenario includes 3 modules:

  1. Set Variable - Stores the pre-filled authorization code
  2. HTTP Token Exchange - Exchanges auth code for OAuth tokens (access_token, refresh_token)
  3. Twitter Post - Posts a test tweet: "Testing Twitter API integration with Make.com! πŸš€"

πŸ› οΈ Technical Details

Files Structure

make-twitter/
β”œβ”€β”€ index.html              # Main HTML structure and styles
β”œβ”€β”€ scenario-generator.js   # All JavaScript logic
β”œβ”€β”€ .gitignore             # Git ignore rules
β”œβ”€β”€ README.md              # This file
β”œβ”€β”€ progress.md            # Development changelog
└── decisions.md           # Architectural decisions

Key Technologies

  • OAuth 2.0 with PKCE - Secure authorization flow
  • Web Crypto API - SHA-256 hashing for code_challenge
  • Make.com Blueprint - JSON scenario format
  • Twitter API v2 - OAuth and tweet endpoints
  • Pure Vanilla JS - No frameworks or dependencies

Security Features

  • βœ… PKCE (Proof Key for Code Exchange) implementation
  • βœ… Secure random string generation
  • βœ… State parameter for CSRF protection
  • βœ… No credentials stored or transmitted to third parties
  • βœ… Client-side only processing

πŸ› Troubleshooting

"Resource not found" error on redirect

  • This is normal! Make.com doesn't have a page at the redirect URL
  • Simply copy the entire URL from the address bar

Authorization code expired

  • Auth codes expire in 30 seconds
  • Return to Step 3 and re-authorize
  • Download the new scenario and import immediately

Scenario import shows validation errors

  • Ensure you're using the latest downloaded scenario
  • Check that all HTTP parameters are included (they should be auto-generated)

πŸ“š Documentation

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ’œ Support

If this tool helped you save time and simplify your Twitter OAuth setup, consider supporting its development:

Buy Me A Coffee

πŸ“ License

This project is licensed under the MIT License - see below for details:

MIT License

Copyright (c) 2025 Avinash Sangle

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

🌟 Acknowledgments

  • Built with ❀️ for the developer community
  • Inspired by the need for simpler OAuth workflows
  • Thanks to all contributors and users!

Made with ❀️ by Avinash Sangle

About

πŸ” Beautiful wizard to simplify Twitter OAuth 2.0 setup with Make.com. Auto-generates ready-to-use scenarios with PKCE security.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published