I want to make an OAuth request to Gmail. I keep getting Error 400: redirect_uri_mismatch. Here are the screenshots of my setup.
What am I doing wrong?
I want to make an OAuth request to Gmail. I keep getting Error 400: redirect_uri_mismatch. Here are the screenshots of my setup.
What am I doing wrong?
Make sure to add make.com
and integromat.com
in the authorized redirect URI section
No, this is not the problem.
hey @pritt_kallas,
I’m experiencing the same problem did you get any solution to this?
No solution for this yet
My scenario was working fine for a week but yesterday i got an error and have been trying to reconnect again but not working
Welcome to the Make community!
Looks like your Authorize URI is incorrect.
Follow this main guide on how to set up a custom OAuth 2.0 custom app in Make.
Provided below are additional supplementary instructions in case the above isn’t clear enough.
Search for the relevant Google API here: https://console.cloud.google.com/apis/library
Go to each API page that you want to use, end click “Enable”
Usually you’ll want to enable at least Drive (includes Docs/Sheets) and Gmail.
Direct Link: https://console.cloud.google.com/apis/credentials
Here are some commonly-needed redirect URIs you need for your Google Cloud Console OAuth app. If you set these up, you can reuse the same GCP app for other Google apps and modules on Make.
https://www.make.com/oauth/cb/google
https://www.make.com/oauth/cb/google-custom
https://www.make.com/oauth/cb/google-restricted
https://www.make.com/oauth/cb/google-cloud-speech
https://www.make.com/oauth/cb/youtube
https://www.make.com/oauth/cb/oauth2
https://www.integromat.com/oauth/cb/oauth2
Note: Once you’ve set these up, you can use/reuse the same Make connection for all the supported Google apps & modules on Make - you’ll only have to enable the APIs for your custom app.
Direct Link: https://console.cloud.google.com/apis/credentials/consent/edit
Insert make.com
and integromat.com
Fill in other required fields
Click “Save and Continue”.
Click “Add or Remove Scopes”
Select 100 “Rows per page”, for each page, check all the rows, OR
Manually type in the scopes you need
Click “Update” at the bottom
At the last step/page, click “BACK TO DASHBOARD” instead of “Prepare for Verification”
You will need to set your OAuth application to “Production”, otherwise the credentials expire very frequently.
To do this, go back to “OAuth consent screen”
Then click the “PUBLISH APP” button
Then click the “CONFIRM” button
You can find the Client ID and Client Secret in the OAuth2 app you created in GCP, on the right-hand side of where you inserted the callback URLs in step 2:
Insert the GCP app client ID and secret here BEFORE clicking “Sign in”
(Gmail example)
OR,
You need a “Authorize Parameters” key of redirect_uri
with the above Make OAuth2 callback URL.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Hi! Sorry I didn’t answer your extremely helpful explanation.
I finally got what I needed with the regular Make Gmail connection and didn’t need API approach.
Thank you, this is very useful