feat: add Instagram connector support

Merged
RE
7mo ago
+21-12

Summary

  • Add "instagram" to SUPPORTED_TOOLKITS and ALLOWED_ARTIST_CONNECTORS
  • Add COMPOSIO_INSTAGRAM_AUTH_CONFIG_ID auth config for Instagram OAuth
  • Fix authConfigs bug: moved auth config construction above both return paths so custom OAuth configs apply regardless of account_id presence
  • Part of REC-49: Add Instagram Connector (Artist-Level)

Test plan

  • Set COMPOSIO_INSTAGRAM_AUTH_CONFIG_ID in env
  • Verify GET /api/connectors returns Instagram in artist connector list
  • Verify POST /api/connectors/authorize with connector: "instagram" includes auth config
  • Verify TikTok connector still works (regression)

šŸ¤– Generated with Claude Code


Summary by cubic

Add an artist-level Instagram connector with custom OAuth, and apply authConfigs with or without account_id (REC-49).

  • New Features

    • Added "instagram" to SUPPORTED_TOOLKITS and ALLOWED_ARTIST_CONNECTORS.
    • Enabled Instagram OAuth via COMPOSIO_INSTAGRAM_AUTH_CONFIG_ID.
  • Bug Fixes

    • Built authConfigs before all return paths so custom OAuth applies regardless of account_id; updated tests to include Instagram.

Summary by CodeRabbit

  • New Features

    • Instagram connector is now available in the Composio toolkit library for creating and managing sessions
    • Instagram is now supported and recognized as an allowed artist connector
  • Improvements

    • Enhanced OAuth authentication configuration handling for custom OAuth providers to ensure proper support for Instagram, TikTok, and other platforms