Frill Single Sign On (SSO)

Hi everyone!

I’m releasing my first plugin today mainly because I struggled to get Frill SSO working, so I thought to release a plugin for everyone else who might need it :blush:

Thanks to @bubble.trouble and @dorilama for helping me a bit in this thread to get everything working.

Description

Integrate your Bubble app with Frill’s SSO feature. This plugin will allow you to force users on your Frill page to log in via your Bubble app.

See the editor example here: frill.co | Bubble Editor


Instructions

Setup in Frill:

  1. Go to https://YOUR_FRILL_DOMAIN.frill.co/settings/company/sso
  2. Add your redirect URL; this will be the page you authenticate your users at. For example, your /auth page.
  3. Input the SSO token given by Frill into the plugin on the plugin page

Then move on to the next step with the setup in Bubble.

Setup in Bubble:

  1. Create a “When page is loaded” event in your auth page with a condition of “Get data from URL” specifying the parameter to be “redirect” is not empty and Current User is logged in

  2. Add the “Sign in with SSO” action within that event

  3. Add the “Open an external website” action within the event. When you are initializing SSO with Frill, in “Destination,” you will need to include: “https://YOUR_FRILL_DOMAIN.frill.co/settings/company/sso?ssoToken=Result from previous step”

Then navigate to https://YOUR_FRILL_DOMAIN.frill.co/settings/company/sso and click the “Test the redirect flow” button.

Once it has been successfully initialized, you can change the destination URL to: https://YOURFRILLDOMAIN.frill.co/?ssoToken=Result from the previous step.


I hope this helps!

Get the plugin here! :point_down:

6 Likes

Hi @johnny ,

Thanks for putting this together. Is there a reason why you haven’t jsonWebToken updated to version 9?

Hey @rico.trevisan,

I was experiencing an issue when I had it set on latest over the weekend, so I just changed it to v8 after copying and pasting the issue on the forum :joy:

I can upgrade it to v9

1 Like

Just happened to see the update, applied it, it works!

Thanks!

1 Like