Actions2
Build Auth URL
AI-generatedSummary
Builds a Google OAuth 2.0 authorization URL for initiating user authentication in an n8n workflow using Google Form Auth.
Inputs
- State (required) — A string to include in the URL to maintain state between the request and callback, e.g., {{$execution.resumeFormUrl}}.
Output shape
a list of items each containing JSON with 'authUrl' (string URL for Google OAuth authorization), 'state' (the provided state string), and 'redirectUri' (the OAuth redirect URI).
Each input item results in one output item with the constructed auth URL and related data. The URL is built using the configured Google OAuth client credentials.
Examples
Example 1: Creating an authorization URL to redirect form users to Google's login page.
Provide the 'State' parameter to track session state during authentication; the operation returns the URL to direct users to for OAuth login.