My issue is related to adding a Google Doc actions to a workflow and connecting to a google account. I created a new google account, generated an API key and secret and used https://oauth.n8n.cloud/oauth2/callback. I enabled the permission for google drive/ google docs and added them to the scope. I added my email address as Developer and Tester.
In N8N I added a new credential , added key and secret and pressed Sign in with Google, pressed my Google account then got
“Google hasn’t verified this app
You’ve been given access to an app that’s currently being tested. You should only continue if you know the developer that invited you.”
I clicked continue → I then selected to allow the app to access my files in google drive → then clicked next
Error message appeared in the Google window.
Error: Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).
More Details >
{“error”:“invalid_client”,“error_description”:“Unauthorized”}
In the Google Doc action the access to Drive says Error fetching access to Drive and the error info says
Issues:
There was a problem loading the parameter options from server: “Unable to sign without access token”
I have gotten around this issue by creating a service account credentials instead of a oauth credentials and have connected to my drive without problems. Not sure what the issue is with oauth. Oh well.
Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.
```
<your workflow>
```
That implies to any JSON output you would like to share with us.
Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!
Both methods - OAuth2 and Service API - seems to be working fine. With OAuth2 you need to be sure that the email address you are signing in with is added to the testers if you have not published your GCP app yet. Also you need to be sure Google Docs API has been enabled on the app.
Thank you Peter so much for sharing this! I was breaking my brain how to verify my ‘app’ with google. You’ve made my date. This service-based approach makes a lot of sense, since my n8n flow is indeed a fully automated service not a user interaction based app…