# Frill Single Sign On (SSO)

**URL:** <https://forum.bubble.io/t/frill-single-sign-on-sso/242385>\
**Category:** Plugins\
**Created:** [January 19, 2023, 7:31pm UTC](https://forum.bubble.io/t/frill-single-sign-on-sso/242385 "2023-01-19T19:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [January 19, 2023, 7:31pm UTC](https://forum.bubble.io/t/frill-single-sign-on-sso/242385/1 "2023-01-19T19:31:00Z")

</div>

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](http://forum.bubble.io/t/plugin-possible/160840) 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](https://bubble.io/page?name=index&id=frillco&test_plugin=1670875233068x555243380664696800_current&tab=tabs-2)

* * *

# 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](https://YOURFRILLDOMAIN.frill.co/?ssoToken=Result) from the previous step.

* * *

I hope this helps!

Get the plugin here! 👇

> **[Templates for Bubble](https://bubble.io/plugin/sso-with-frillco-1670875233068x555243380664696800)**
>
> Buy and sell Bubble templates to speed up app development. Bubble is a visual programing language that lets you build apps without code.

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [March 20, 2023, 6:51pm UTC](https://forum.bubble.io/t/frill-single-sign-on-sso/242385/2 "2023-03-20T18:51:44Z")

</div>

Hi @johnny ,

Thanks for putting this together. Is there a reason why you haven’t jsonWebToken updated to [version 9](https://github.com/auth0/node-jsonwebtoken)?

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [March 20, 2023, 8:37pm UTC](https://forum.bubble.io/t/frill-single-sign-on-sso/242385/3 "2023-03-20T20:37:59Z")

</div>

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 😂

I can upgrade it to v9

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [March 21, 2023, 5:09pm UTC](https://forum.bubble.io/t/frill-single-sign-on-sso/242385/4 "2023-03-21T17:09:52Z")

</div>

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

Thanks!
