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
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:
- Go to https://YOUR_FRILL_DOMAIN.frill.co/settings/company/sso
- Add your redirect URL; this will be the page you authenticate your users at. For example, your /auth page.
- 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:
-
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
-
Add the “Sign in with SSO” action within that event
-
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!