NO CODE PLUGINS
Single Sign-on (SSO) Login

SSO Email Already Exists

6min

Many apps have the ability to let users log in using multiple methods - SSO/Identity and Email+Password

If the user's email already exists using the Email+Password method, the SSO process will not log the user in and your users may be routed back to the sign in page.

We recommend setting up a simple error message to handle such scenarios that also helps remind your users to check the method they used to log in.



Setup

After you have setup your SSO workflows according to the documentation the relevant setup documentation ( Visual Element Based (SSO Plugin) OR Plugin Action Based (SSO Plugin) ), you will need to add the following steps:



Add Message Text

Add a text element to your login page with the message you would like to show your user:



Image: Text element with error
Image: Text element with error






Add Custom Field

Add a custom field in your Bubble user data to capture the provider info, in this example, we are naming the custom field as sign in method. We will store the provider name in this field.



Image: Add custom field
Image: Add custom field




Modify Workflow

  • Step 1: In your existing SSO Login workflow, edit the first step to save the SSO Profile's Provider name against the user in your database:



Image: Save provider name
Image: Save provider name




  • Step 2: Add a condition to Search for users:count is 1 based on email and sign in method. This will search for the condition to see if the user has logged in via SSO or Email+Password method



Image: Search for SSO user
Image: Search for SSO user




  • Step 3: Add a Step 3 to the workflow to Show the Text element only when users email and sign in method match



Image: Show error
Image: Show error




This would show the message to the user to recheck their login method.





Need additional help? Reach out to our support via [email protected] or live chat through your Pathfix dashboard