Custom Auth
Execute tools with custom auth
Composio supports multiple authentication schemes, and a connection can be created with any of these.
Auth with OAuth 2.0
To add custom OAuth 2.0 credentials, the auth_config
parameter needs to be specified with the OAuth client id and client secret while creating an integration.
Integration object stores the credentials.
A connection request is initiated using the specified integration ID which uses the specified auth OAuth credentials.
Once the connection is established, an action can be executed using the connection object.
How to retrieve auth configuration
Code
Dashboard
Auth with Bearer Token
Many applications that have OAuth 2.0, also support the user providing their own Bearer token.
For these, the auth_config
parameter is not required. However, the user is expected to provide the token in the connectionParams
parameter.
Auth with API Key
Similar to Bearer Token Authentication, the auth_config
parameter is not required.
In some token based authentication, the user is expected to provide more information than just the token.
In this case, Shopify requires the user to provide the api_key
and shop
parameters.