Social Login
How to import
In the Admin Console go to Workflows → New Workflow → From Template, select Social Login, and click Import.
Node Topology
How the Flow Works
- Entry: every request first hits Has Session.
- Already logged in: Has Session True routes directly to Success Final, bypassing the login form.
- No session: Has Session False renders the Login Web Page, which contains both credential inputs (Email + Password) and social provider buttons (Facebook, Google, X).
- Email and password path: the user fills the form and submits. The Web Page Output feeds into Auth.
- Auth True: credentials valid; user is redirected to Success Final.
- Auth False: invalid credentials; the flow loops back to the Login Web Page and the error is shown inline.
- Social path: the user clicks a social provider button. Each social button triggers the Social Auth node directly.
- Social Auth True: OAuth handshake succeeded; user is redirected to Success Final.
- Social Auth False: OAuth handshake failed; flow terminates at Failure Final.
Nodes Used & Why
| Node | Role | Key config |
|---|---|---|
| Has Session | Skips login for already-authenticated users | No config needed |
| Web Page | Renders the combined login form | Web Page Header defaults to "Social Login" |
| Email (child) | Collects the user's email address | No change needed for standard flows |
| Password (child) | Captures the login password | Default type is login |
| Facebook / Google / X (children) | Social provider buttons | Each requires App Name, API Key, and API Secret matching the provider's OAuth app |
| Auth | Verifies email and password credentials | Enable error edges for account-locked and similar statuses |
| Social Auth | Validates the OAuth handshake result | Wire error 4111 if you need a recovery path for misconfigured providers |
| Success Final | Terminates on successful authentication | Set Redirect URL to your post-login destination |
| Failure Final | Terminal failure for Social Auth False | Set Redirect URL to a suitable error page |