Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 04:45 UTC
How do I set up custom OAuth credentials for Supabase?
Use your own Supabase OAuth app when you want to limit what the connection can do or show your app's name on the consent screen. The default Composio OAuth app may be configured with broader permissions, so scope limits belong in your own app.
Create the Supabase app
- Open your Supabase organization and go to Organization Settings.
- Click Add Application and fill in the form:
- Name: for example,
Composio-Supabase. - Website URL: your application's URL.
- Authorization Callback URL:
https://backend.composio.dev/api/v1/auth-apps/add. It must exactly match theoauth_redirect_urifield in your Composio auth config.
- Name: for example,
- Grant only the read and write permissions your tools need, then click Create.
- Copy the Client ID and Client Secret from the page Supabase opens next.
Create the auth config in Composio
- In the Composio dashboard, go to Auth Configs, click Create Auth Config, and select Supabase.
- Set the authentication type to OAuth2 and choose Use your own developer credentials.
- Paste the Client ID and Client Secret, then click Create Supabase Auth Config.
- Click Connect Account. Keep the Supabase API URL at
https://api.supabase.comunless you self-host Supabase. - Check that the consent screen lists only the permissions you granted the app, click Authorize, and confirm the account shows as Active.
See Custom auth configs for the general flow.
Scopes
The permissions you select in the Supabase app decide what the connection can access. Composio's auth config requests the all scope and can't narrow it further, so set the limits in Supabase.
Use a personal access token instead
Supabase also supports API key authentication. Choose API Key as the authentication type, then on Connect Account paste a personal access token that starts with sbp_. Create one at Account → Access Tokens. Supabase shows it only once, so copy it right away.