Integrations
Serverless API Gateway integrations for authentication, proxying, and service bindings. Connect Auth0, Supabase, HTTP backends, and Cloudflare services.
The Serverless API Gateway provides built-in integrations that handle authentication flows, request proxying, and service bindings with minimal configuration. Each integration is specified in the paths[].integration.type field of your api-config.json.
For general authentication setup, see the Authentication Guide. For JWT-based authorization, see Authorizer.
Authentication Integrations
Auth0
OAuth 2.0 / OpenID Connect integration with Auth0. Supports login redirect, callback handling, token exchange, and user profile retrieval.
Auth0 Integration Guide -- configuration, environment variables, and OAuth flow
Auth0 Quickstart -- step-by-step setup
Supabase OTP
Passwordless authentication via Supabase. Supports email OTP, phone OTP (SMS), and magic links.
Supabase OTP Configuration Guide -- setup, magic link vs OTP, email templates, and troubleshooting
Supabase Passwordless Quickstart -- step-by-step setup
Authentication Guide -- compare Supabase with JWT and Auth0 flows
Integration Type Reference
The paths[].integration.type field supports the following values:
Proxy and Service Integrations
http
Forward the request to an external HTTP endpoint and return the response
http_proxy
Proxy the request to an external HTTP endpoint, preserving headers and path
service
Call an internal service endpoint
service_binding
Invoke a Cloudflare Worker service binding
Auth0 Integrations
auth0_callback
Handle the OAuth callback from Auth0, exchanging the authorization code for tokens
auth0_callback_redirect
Redirect the user to the Auth0 login page to initiate authentication
auth0_userinfo
Retrieve the authenticated user's profile from Auth0's /userinfo endpoint
auth0_refresh
Refresh an expired Auth0 access token using a refresh token
Supabase Integrations
supabase_passwordless_auth
Send a one-time password (OTP) to an email address or phone number via Supabase
supabase_passwordless_verify
Verify the OTP and return JWT access and refresh tokens
supabase_passwordless_auth_alt
Alternative passwordless auth endpoint for custom configurations
Related Pages
Authentication Guide -- configure authentication across providers
Authorizer -- JWT validation and authorization settings
CORS -- cross-origin request configuration
Service Binding -- Cloudflare Worker service binding setup
Paths Configuration -- route and path setup
Last updated