How to create Oauth2 credentials for Canva
How to create Oauth2 credentials for Canva
In this guide, I will share the process for customizing the auth config for Canva. So, let's begin.
Setting up Canva
In this section, we’ll go through the process of creating an integration and setting up Canva to access the Client ID and Client Secret.
NOTE: If you already have an integration in Canva and can access the Client ID and Client Secret, you can skip to Step 3.
Step 1: Create an integration
Log in to the Developer Portal, navigate to the Your Integrations page, and click on Create an integration.

We need to create an integration to obtain the Client ID and Client Secret.
You can create two different types of integrations:
Public Integration: This feature is accessible to anyone using Canva. It needs to be approved by the Canva team before you start using it.
Private Integration: This is a private feature that can only be used by the team. You'll require a Canva Enterprise Plan to create this integration.

For this guide, we'll use a public integration, but you can also use a private integration if you have a Canva Enterprise Plan.
Step 2: Copy the OAuth Credentials
Once your integration is created, you can easily access the Client ID and Client Secret.
Navigate to your newly created integration.
Under the Configuration tab, under Credentials, you can find the Client ID and Client Secret.

Step 3: Set the Authorized Redirect URI
You’ll also need to configure the Authorized Redirect URI of the application to point to Composio’s callback URL.
In the Authentication tab, under Authorized Redirects, add the following URL:
<https://backend.composio.dev/api/v3/toolkits/auth/callback>

Now, you can configure some additional items like the integration scope in the Scopes tab as needed, and then submit it for review. If everything goes well, it will be accepted, and you'll be all set.

That's all you need to set up on the Canva side.
Creating the Auth Config in Composio
With your OAuth credentials ready, navigate to the Composio dashboard for your project to configure the authentication settings for Canva.
Click on the Create Auth Config button to get a list of all the toolkits available.

In the sidebar that opens, select Canva as your toolkit. Ensure the authentication is set to OAuth2 as the default. There is no support for Bearer Token with Canva.

Paste the Client ID and Client Secret you just copied from Canva into their respective fields.

Then, click Create Canva Auth Config.
Once you have set up the auth config for Canva, you can go to the Manage Auth Config tab to make changes to any auth config fields. Here, you can also customise the auth scopes if needed. Default scopes are already pre-filled for most apps.

Once done, copy the auth config ID (which starts with ac_
) and use it in your application code via a secret manager.
Your custom Canva auth config is now ready to go! 🚀
In this guide, I will share the process for customizing the auth config for Canva. So, let's begin.
Setting up Canva
In this section, we’ll go through the process of creating an integration and setting up Canva to access the Client ID and Client Secret.
NOTE: If you already have an integration in Canva and can access the Client ID and Client Secret, you can skip to Step 3.
Step 1: Create an integration
Log in to the Developer Portal, navigate to the Your Integrations page, and click on Create an integration.

We need to create an integration to obtain the Client ID and Client Secret.
You can create two different types of integrations:
Public Integration: This feature is accessible to anyone using Canva. It needs to be approved by the Canva team before you start using it.
Private Integration: This is a private feature that can only be used by the team. You'll require a Canva Enterprise Plan to create this integration.

For this guide, we'll use a public integration, but you can also use a private integration if you have a Canva Enterprise Plan.
Step 2: Copy the OAuth Credentials
Once your integration is created, you can easily access the Client ID and Client Secret.
Navigate to your newly created integration.
Under the Configuration tab, under Credentials, you can find the Client ID and Client Secret.

Step 3: Set the Authorized Redirect URI
You’ll also need to configure the Authorized Redirect URI of the application to point to Composio’s callback URL.
In the Authentication tab, under Authorized Redirects, add the following URL:
<https://backend.composio.dev/api/v3/toolkits/auth/callback>

Now, you can configure some additional items like the integration scope in the Scopes tab as needed, and then submit it for review. If everything goes well, it will be accepted, and you'll be all set.

That's all you need to set up on the Canva side.
Creating the Auth Config in Composio
With your OAuth credentials ready, navigate to the Composio dashboard for your project to configure the authentication settings for Canva.
Click on the Create Auth Config button to get a list of all the toolkits available.

In the sidebar that opens, select Canva as your toolkit. Ensure the authentication is set to OAuth2 as the default. There is no support for Bearer Token with Canva.

Paste the Client ID and Client Secret you just copied from Canva into their respective fields.

Then, click Create Canva Auth Config.
Once you have set up the auth config for Canva, you can go to the Manage Auth Config tab to make changes to any auth config fields. Here, you can also customise the auth scopes if needed. Default scopes are already pre-filled for most apps.

Once done, copy the auth config ID (which starts with ac_
) and use it in your application code via a secret manager.
Your custom Canva auth config is now ready to go! 🚀