n8n icon indicating copy to clipboard operation
n8n copied to clipboard

Firestore - Service Account creds + document create with specific id

Open adrian-martinez-onestic opened this issue 1 year ago • 1 comments

Summary

This PR adds two features:

  • Allows to use Google Service Accounts for Firestore nodes authentication.
  • Allows to create Firestore documents with specific ids (optionally).

Details

While its possible to use Firestore using a service account, it is currently not supported by n8n, as noted at https://docs.n8n.io/integrations/builtin/credentials/google/#compatible-nodes. Allowing to use a service account in this node allows not depending on a personal account, and provides a reliable way to connect to Firestore.

In this way, proposed changes are backwards compatible, and offer the possibility of using either Oauth2 or Service Account authentication, and optionally, supply a document id, as it is possible while calling API or creating the document manually through the UI:

Captura de pantalla 2024-06-12 a las 12 43 00 Captura de pantalla 2024-06-12 a las 12 43 34 Captura de pantalla 2024-06-12 a las 12 47 35 Captura de pantalla 2024-06-12 a las 12 53 57 Captura de pantalla 2024-06-12 a las 12 56 35 Captura de pantalla 2024-06-12 a las 13 03 32 Captura de pantalla 2024-06-12 a las 13 03 49

adrian-martinez-onestic avatar Jun 12 '24 10:06 adrian-martinez-onestic

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 12 '24 10:06 CLAassistant

Since maintainers aren't allowed to edit this PR, I'm unable to fix the CI issues. Can you please cherry-pick this commit, and merge the latest master back in 🙏🏽. Once the CI is green, we can merge.

When creating any future PRs, please make sure that this checkbox is checked Screenshot from 2024-06-26 13-32-22

netroy avatar Jul 04 '24 18:07 netroy

Cherry-picked commit with CI fixes, also updated branch with latest master changes

adrian-martinez-onestic avatar Jul 08 '24 08:07 adrian-martinez-onestic

Got released with [email protected]

janober avatar Jul 10 '24 15:07 janober