Social login
The Social login tab: the twelve sign-in providers, the redirect address, and how to create the app and get the credentials of each provider.
How social login works
Social login lets your customers sign in with an account they already have, instead of creating a password. FlowyCart offers Google, Facebook, Apple, Amazon, Microsoft, PayPal, X, LinkedIn, GitHub, Discord, Twitch and Yahoo.
Each provider works with your own app, which you create in the developer console of that provider. The provider gives you credentials, you paste them in FlowyCart, and the button of that provider appears in the checkout. The sign-in happens between your store and the provider. The checkout needs the customer's e-mail to identify the account, so a provider that does not share a confirmed e-mail for a customer cannot sign that customer in.
Your store must use https. Almost every provider refuses http return addresses. If the store does not use https, the tab shows a notice: turn on SSL for the store before you set up social login.
The Social login tab
| Element | What it does |
|---|---|
| Show social login on checkout | Shown with the Nexo and Atlas designs. Hides the whole row of social buttons without disabling each provider one by one. It is independent from each provider's own switch. |
| Redirect address to register with the provider | An address of your own store, with a Copy button. Copy it into the list of authorised redirect addresses (callback URLs) of each provider. It must match exactly, including https and the domain. |
| Provider cards | One card per provider, with its state: Not configured, Configured, disabled or Active. |
Apple, Microsoft and LinkedIn use a different return address: the address of the store itself, without ?route=. Their own guide shows it.
Each provider card has:
| Element | What it does |
|---|---|
| The guide, for example How to get the Google credentials | A step-by-step guide. Button and menu names are written as the provider's console shows them in English. The values to paste already carry your store's details, each with its Copy button. |
| The console button, for example Open the Google console, and Official guide | Open the developer console of the provider and its official documentation in a new tab. |
| Enable | Shows the button of this provider in the checkout. A provider can only be enabled once its required fields are filled in. |
| Client ID | The public identifier of your app. |
| Client secret | The secret of your app. A saved secret is never shown again: leave the field blank to keep it unchanged. |
| Remove the saved secret | Shown when a secret is saved. Tick it and save to delete the saved secret. |
Set up a provider
- Open the Social login tab and open the card of the provider.
- Follow the guide of the card. Use the Copy buttons for the values of your store.
- Paste the credentials into the fields of the card.
- Tick Enable and press Save changes.
- Test the provider in a private browser window before telling your customers.
If your store address changes, update the redirect address at every provider.
The editor shows the full steps of each provider, with the redirect address, your store address, your domain, your store name and the addresses of your privacy policy and terms pages ready to copy. The privacy policy and terms pages are the ones selected as account terms and checkout terms in your OpenCart settings. The sections below summarise each provider: where the app is created, what to register and what to copy into FlowyCart.
In the Google Cloud console, choose or create a project. If asked, set up the Google Auth Platform with Audience set to External. Go to Clients → Create client, choose Web application and paste the redirect address under Authorized redirect URIs. Copy the Client ID and the Client secret straight away: Google only shows the whole secret once. Then go to Audience and click Publish app so that the status is In production.
A change at Google can take from five minutes to a few hours to apply. The error redirect_uri_mismatch means the redirect address does not match exactly.
In Meta for Developers, click Create app and choose the use case Authenticate and request data from users with Facebook Login. In the use case, add the email permission and paste the redirect address into Valid OAuth Redirect URIs. In App settings → Basic, fill in App domains, Privacy policy URL, User data deletion and a Category. Copy the App ID into Client ID and the App secret into Client secret.
Publish the app so that it is Live. While it is in development, only people with a role in the app can sign in. The email and public_profile permissions need no app review.
Apple
You need a paid Apple Developer Program membership. The fields of this card are Services ID, Team ID, Key ID and Private key (.p8).
- In Certificates, Identifiers & Profiles, register an App ID with Sign in with Apple ticked.
- Register a Services ID. Its identifier is the Services ID of FlowyCart. Open it, tick Sign in with Apple and click Configure: choose the App ID, write your domain in Domains and Subdomains and the return address shown in the guide in Return URLs.
- In Keys, create a key with Sign in with Apple and download it. Apple lets you download the .p8 file only once.
- In FlowyCart press Choose the .p8 file and pick it: the Key ID is taken from the file name.
- Your Team ID is in Membership details of your developer account.
The return address of Apple is the address of your store, without ?route=. FlowyCart recognises Apple's answer there and takes the customer back to the checkout.
Amazon
In the Login with Amazon console, click Create a New Security Profile. Your customers see the Security Profile Name. Fill in Consent Privacy Notice URL with your privacy policy page. Open Web Settings of the profile, click Edit, paste the redirect address in Allowed Return URLs and leave Allowed Origins empty. Copy the Client ID and, after Show Secret, the Client Secret.
Amazon needs https and a return address shorter than 125 characters.
Microsoft
In the Microsoft Entra admin center, go to App registrations → New registration. In Supported account types choose Personal accounts only. In Redirect URI choose Web and paste the return address shown in the guide. Copy the Application (client) ID into Client ID. In Certificates & secrets, create a New client secret and copy its Value, not the Secret ID, into Client secret straight away: Microsoft never shows it again.
The return address of Microsoft has no ?route=, because Microsoft does not accept one for personal accounts. The secret expires on the date you chose: before then, create a new one and paste it in FlowyCart, or Microsoft sign-in stops working.
PayPal
You need a PayPal Business account. In the PayPal Developer Dashboard, switch the toggle to Live and click Create App with Type set to Merchant. Copy the Client ID and the Secret. Under Features, tick Log in with PayPal and open Advanced Settings: paste the redirect address in Return URL, tick Full name and Email, and fill in the privacy policy and user agreement addresses.
PayPal reviews Log in with PayPal on live apps before it works. Sandbox keys do not work in your store: use the Live ones.
X
In the X developer console, create an app and click Set up under User authentication settings. Choose App permissions: Read, turn on Request email from users and choose Web App, Automated App or Bot. Paste the redirect address in Callback URI / Redirect URL and fill in your store address, terms and privacy policy. X shows the OAuth 2.0 Client ID and Client Secret only once.
For X the field is Client secret (optional). Leave it blank if you registered your X app as a public client: sign-in still works. X only shares a confirmed e-mail, so customers whose X account has only a phone number cannot sign in with X.
The app must belong to a LinkedIn company page of your shop. In LinkedIn Developers, create the app with your company page in LinkedIn Page. In the Products tab, click Request access for Sign In with LinkedIn using OpenID Connect. In the Auth tab, add the return address shown in the guide to Authorized redirect URLs for your app. Copy the Client ID and the Primary Client Secret.
The return address of LinkedIn has no ?route=, because LinkedIn drops what follows the question mark.
GitHub
GitHub can create the app for you. In the GitHub card, under Quick connection with GitHub, press Create the app on GitHub, check the app name on GitHub and click Create GitHub App. You come back to the editor with the app created, its keys saved and GitHub sign-in turned on. Save or discard your pending changes before you press the button.
To do it by hand, go to Settings → Developer settings → OAuth Apps → New OAuth App on GitHub. Paste the redirect address in Authorization callback URL, leave Enable Device Flow off and register. Copy the Client ID, click Generate a new client secret and copy the secret. GitHub shows it only once.
The customer's e-mail is their primary GitHub address, and only if it is verified.
Discord
In the Discord Developer Portal, click New Application and open OAuth2. Copy the Client ID, click Reset Secret and copy the Client Secret: Discord shows it only once. Under Redirects, click Add Redirect, paste the redirect address and click Save Changes.
Twitch
Turn on two-factor authentication on your Twitch account first: Twitch asks for it to register applications. In the Twitch developer console, click Register Your Application. Use a name nobody uses on Twitch, add the redirect address in OAuth Redirect URLs, and choose Website Integration and Confidential. Click Manage, copy the Client ID, click New Secret and copy the Client Secret.
A new secret cancels the previous one. Twitch only shares a verified e-mail.
Yahoo
In Yahoo Developer, create an app with Application Type set to Web Application and the redirect address in Redirect URI(s). In API Permissions, tick OpenID Connect Permissions with Email and Profile. Click Create App and copy the Client ID (Consumer Key) and the Client Secret (Consumer Secret).
If you set up Apple, Microsoft or LinkedIn before version 1.3.5
Since version 1.3.5 these three providers return to the address of the store. If you configured one of them with version 1.3.2, 1.3.3 or 1.3.4, open its guide in the editor, copy the return address shown there and replace the old one in the console of the provider.
Still need help?
Open a support ticket from your account and our team will look at your store with you.