Integration
Comprehensive guide to integrating Elsa Studio into different host frameworks including React, Angular, Blazor, and MVC/Razor Pages. Covers hosting patterns, configuration, and authentication.
Overview
Common Integration Approaches
1. Separate App with Reverse Proxy
┌──────────────────────────────────────────┐
│ Reverse Proxy (nginx) │
│ │
│ /studio/* ──> Elsa Studio (Port 5001) │
│ /api/* ──> Elsa Server (Port 5000) │
│ /* ──> Your App (Port 3000) │
└──────────────────────────────────────────┘2. Iframe Embedding
3. Direct Embedding (Blazor/MVC)
Configuration Common to All Patterns
Base API URL
Authentication
API Key (Simplest)
Bearer Token (OAuth2/OIDC)
Cookie-Based (Same Domain)
CORS Configuration
React Integration
Pattern 1: Separate Service
Pattern 2: Reverse Proxy
Angular Integration
Pattern 1: Iframe Integration
Pattern 2: Proxy Configuration
Blazor Integration
Pattern 1: Same Process (Recommended)
Pattern 2: Embedded Component
MVC / Razor Pages Integration
Pattern 1: Separate Routes
Pattern 2: Iframe in View
Authentication Integration
Shared Cookie Authentication
JWT Token Authentication
Production Deployment Patterns
Docker Compose
Kubernetes
Troubleshooting
CORS Issues
Authentication Not Working
Iframe Not Loading
Summary
Last updated