I am creating a customer facing webapp (nodejs) and would be using Google login along with permissions to read emails.
Is it possible to use the permissions granted there to trigger requests using the gmail node in n8n.
In other words, I want to avoid having to authorize the n8n gmail node explicitly.
The easiest would be to create/update credentials via the UI and then looking at what kind of data does get sent. You can find the code which creates the credentials here:
Additionally, can you find the OAuth2 related code here:
If you authenticate via OAuth2 with Google and output some information there, before it updates the credentials, you should be able to figure out quite fast how to make that work.
So currently, N8N can serve natively as a backend for a SAAS where external users login using gmail.
This node has not been updated for this purpose, correct ?
Do you know some other tool that can handle this part for n8n ? (because if I want to access emails of my users, I can then send info to any workflow).
And in your proposed solution I need to host my own solution and update the source code, right ?