Use this comprehensive n8n workflow to automate secure account linking between LINE Official Accounts and Google accounts using the full OAuth2 authorization flow.
Download this n8n workflow template and start using it instantly.
Developers managing services that integrate user identities across LINE and Google.
Technical marketers who need robust, automated authentication methods.
Users seeking advanced examples of n8n templates for handling complex, multi-stage authorization protocols.
Engineers looking to implement secure identity federation without writing complex backend code using this powerful n8n workflow.
Managing user identity across multiple platforms requires robust and secure mechanisms. This specialized n8n workflow addresses the complexity of linking users from a LINE Official Account (OA) to their corresponding Google profile using the OAuth2 protocol. It demonstrates how the n8n automation platform can orchestrate intricate API interactions.
The n8n workflow is divided into two phases, ensuring that the critical step of identity verification (using the LINE User ID as the OAuth state parameter) is handled securely. This n8n automation template provides a production-ready solution for enhancing user services by integrating external identity providers, showcasing the immense power and flexibility of the n8n node library.
This n8n automation consists of two main execution branches, each initiated by a unique n8n trigger webhook:
follow event.state parameter, which is essential for securely identifying the user during the callback.state parameter.state parameter), confirming the successful linkage and displaying the fetched email.To deploy and utilize this advanced n8n workflow, follow these setup steps:
LINE Webhook URL in the LINE Developer Console and register the Google Auth Callback URL as an Authorized Redirect URI in GCP.Authorization, Value: Bearer YOURTOKEN).YOURGOOGLECLIENTID, YOURGOOGLECLIENTSECRET, YOURN8NWEBHOOKURLFORGOOGLE, etc.) with your actual credentials and URLs:Create Google Auth URLGet Google Access TokenRedirect to LINE OA LINE Webhook (n8n trigger): The primary n8n trigger for the initiation sequence, listening for incoming events from the LINE Messaging API via a POST request.
If Follow Event (n8n node): A logic node ensuring the n8n workflow only proceeds if the event is a user 'follow', preventing unnecessary execution for other message types.
Create Google Auth URL (Set n8n node): A critical n8n node that uses an expression to construct the secure Google OAuth link, dynamically embedding the LINE User ID into the state parameter.
Send Auth Link to LINE (HTTP Request n8n node): Communicates with the LINE API to send the welcome message and the unique authentication link to the user.
Google Auth Callback (n8n trigger): The secondary n8n trigger, serving as the redirect endpoint for Google after successful user authentication, capturing the OAuth code and state.
Get Google Access Token (HTTP Request n8n node): Manages the core OAuth process by exchanging the authorization code for the necessary access token, demonstrating advanced use of the HTTP Request n8n node.
Get Google User Info (HTTP Request n8n node): Fetches the linked user's profile details (email, name) from Google's API using the newly obtained access token.
Send Completion Message to LINE (HTTP Request n8n node): Sends a final confirmation message back to the user via LINE, referencing the state parameter to identify the correct recipient.
Learn how to automate JotForm submissions using a simple HTTP POST request in this powerful n8n workflow. Perfect for integrating external data without complex API keys. This n8n template streamlines data entry.

Automate the transfer of JotForm submission data directly into Google Sheets using this efficient n8n workflow. Perfect for automated data logging and reporting using n8n templates.

Automate your entire job application process using this powerful n8n workflow. It scrapes LinkedIn for fresh openings, uses Mistral AI for detailed resume scoring and custom cover letter generation, and logs all results in Google Sheets for tracking. This n8n workflow template provides unparalleled career intelligence.

Use this powerful n8n workflow to automate Large Language Model (LLM) testing using a GPT-4 judge and track results seamlessly in Google Sheets. A key n8n template for AI validation.









































