Overview
↑ Back to top- First, Social Login will try to identify customer based on the social identifier. This is basically a check to see if this social account has been used on the site before. If a user has already linked this social account to their account on your site, this step with successfully log them in. This primary check lets your users unlink accounts, then re-link them to the existing WordPress user account to maintain their history on your site. For example, a customer could unlink a Facebook account from your site, then try to log in with that Facebook account at a later date. Instead of creating a new account, this will re-link Facebook to the existing account since they have been linked in the past. This does not work with Twitter or Instagram (see details below).
- If a user account is not found in step 1, this means that the social profile has not been used before, Social Login will then try to search for the user via the email address provided by the social profile to see if the customer already has an account on your site. If the user is using the same email address for both the shop account and the social profile, this step with automatically link their social profile with their WordPress user account and successfully log the user in. Note that Twitter and Instagram are exceptions, as they do not provide an email address. Without an email address, Social Login will not be able to successfully look up a preexisting account. Note that site accounts that use another role (aside from customer) will not work this way for security. See below.
- If a user is already logged into your site when they try to link an account, Social Login will do a couple more checks:
- If the user account found in the previous two steps does not match the logged-in user, the process will terminate with an error: “This {Provider} account is already linked to another user account.”
- If no user was found in the previous two steps, then the social profile will be linked to currently logged in customer’s account for the future, as this means its a new social profile that no one else has used.
- Finally, if no user was found in the previous steps, a new customer account will be created.
Automatic Account Linking
↑ Back to top- Some sites send transactional / notification emails from the address used for an admin account
- Someone can create a social account using this email (they’ll know it by receiving your site emails) with a network you allow login with, but do not have an account with that uses this email
- If we automatically allow linking, this person can then “log in” to your site, automatically linking with your site account that uses the same email
- a site admin user’s email would have to be used for sent site emails (or the admin user’s email would need to be known to the person trying to spoof this)
- this admin user’s email would not have a social account with a network that (1) you allow login with, that (2) doesn’t validate email addresses before allowing sign in (which is rare)
- you’d still get the sign up notification email from the network and potentially be able to block this by invalidating the account before it’s used on your site
Questions & Support
↑ Back to topView the Main Documentation