Automatic Google Cloud Run auth with JWT token management (sub-workflow)
Who it’s for? Anyone calling a Google Cloud Run service from n8n who wants a small, reusable auth layer instead of wiring tokens in every workflow. What it does / How it works This sub-workflow checks whether an incoming idtoken exists and is still valid (with a 5-minute buffer). If it’s good, it reuses it. If not, it signs a short-lived JWT with your service account, exchanges it at Google’s token endpoint, and returns a fresh idtoken. It also passes through serviceurl and an optional servicep
At a glance
Automatic Google Cloud Run auth with JWT token management (sub-workflow) is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects UNSUPPORTED_SLUG_FORMAT. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- UNSUPPORTED_SLUG_FORMAT
- Modules
- 10
- Price
- Free
- Version
- v1.0

About this workflow
Who it’s for? Anyone calling a Google Cloud Run service from n8n who wants a small, reusable auth layer instead of wiring tokens in every workflow. What it does / How it works This sub-workflow checks whether an incoming idtoken exists and is still valid (with a 5-minute buffer). If it’s good, it reuses it. If not, it signs a short-lived JWT with your service account, exchanges it at Google’s token endpoint, and returns a fresh idtoken. It also passes through serviceurl and an optional servicepath so the caller can hit the endpoint right away. (Designed to be called via Execute Workflow from your main flow.) How to set up - Add your JWT (PEM) credential using the service account privatekey. - In Vars, set clientemail (from your key) and confirm tokenuri is - Call this sub-workflow with serviceurl (and optional servicepath). Optionally include a prior idtoken to enable reuse. Inputs / Outputs Inputs: idtoken (optional), serviceurl, servicepath Outputs: idtoken, serviceurl, servicepath Notes - Built for loops: pair with a Merge/Split strategy to attach idtoken to each item. - Keep credentials in n8n Credentials (no keys in nodes). - Full write-up and context: Build a Secure Google Cloud Run API, Then Call It from n8n (Free Tier) — by Marco Cassar
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Supabase insertion & upsertion & retrieval
Google maps scraper
Tag EverWebinar Attendees in KlickTipp
⚡📽️ Ultimate AI-powered chatbot for YouTube summarization & analysis
AI image nudity detection tool with image moderation API
Send email drafts to Google from Anthropic Claude messages
Track daily brand mentions from Hacker News to Slack with GPT-4o-mini sentiment analysis
Automated property & restaurant bookings with AI voice calls via Telegram
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you