# Integrating Outseta

**URL:** <https://community.weweb.io/t/integrating-outseta/3234>\
**Category:** Ask us anything\
**Created:** [June 27, 2023, 6:14pm UTC](https://community.weweb.io/t/integrating-outseta/3234 "2023-06-27T18:14:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlso](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/karlso/32/1545_2.png) [@karlso](https://community.weweb.io/u/karlso)\
**Post date:** [June 27, 2023, 6:14pm UTC](https://community.weweb.io/t/integrating-outseta/3234/1 "2023-06-27T18:14:15Z")

</div>

I’m trying to add the Outseta login script so users can log into the app. Outseta is correctly integrated with Xano (video instructions for that [here](https://www.youtube.com/watch?v=dWhTI9EOOeA)).

I copy the embed login script that Outseta gives me, but receive this error: “[domain] is a required option to initialize the Outseta script.”

Embed code below.

```auto
<div id="login-embed"></div>
<script>
var o_login_options = {
  "id": "Outseta",
  "domain": "complydash.outseta.com",
  "load": "auth",
  "auth": {
    "widgetMode": "login",
    "id": "login_embed",
    "mode": "embed",
    "selector": "#login-embed"
  }
};
</script>
<script src="https://cdn.outseta.com/outseta.min.js"
        data-options="o_login_options">
</script>

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [June 28, 2023, 1:42pm UTC](https://community.weweb.io/t/integrating-outseta/3234/2 "2023-06-28T13:42:33Z")

</div>

weweb’s html element is very different from what you expect.

Your code is totally fine if you put it in the header. It will work only in the published app but it will behave how you would expect.

If you want to use it in the editor as well you need a workflow with a js action. First assign the global variable, then inject the script in the page.  
The very minimal example is:

```auto
wwLib.getFrontWindow().o_login_options={ /* your object here */}
const document = wwLib.getFrontDocument()
const script = document.createElement('script')
script.setAttribute('data-options','o_login_options')
script.src = 'https://cdn.outseta.com/outseta.min.js'
document.head.appendChild(script)

```

---

<div class="post-metadata">

**Author:** ![karlso](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/karlso/32/1545_2.png) [@karlso](https://community.weweb.io/u/karlso)\
**Post date:** [July 3, 2023, 4:02pm UTC](https://community.weweb.io/t/integrating-outseta/3234/3 "2023-07-03T16:02:26Z")

</div>

Thanks @dorilama! The login form is now showing up in the published version, but the login flow doesn’t work. After submitting login credentials, the page reloads **or** there’s some redirect that ends up at a refreshed sign in screen.

Here’s a [Loom](https://www.loom.com/share/3e6957209c2f42a08a4a4d1f1f196b7c) showing the login flow.

Perhaps the issue is related to the Xano Authentication plugin? In that plugin’s settings, I’ve tried setting the login endpoint to both the default auth/login and the outseta/auth endpoints, neither of which work. The page just reloads and doesn’t redirect to the home page, [app.complydash.com](http://app.complydash.com).

Note: The Post Login URL setting in Outseta is the app’s homepage.

I haven’t tried uninstalling the plugin, but if I did that I think I’d lose the ability to only allow logged-in users to see protected paged.

---

<div class="post-metadata">

**Author:** ![karlso](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/karlso/32/1545_2.png) [@karlso](https://community.weweb.io/u/karlso)\
**Post date:** [July 5, 2023, 1:30pm UTC](https://community.weweb.io/t/integrating-outseta/3234/4 "2023-07-05T13:30:21Z")

</div>

👋 @Joyce I saw WeWeb’s roadmap includes an integration with Outseta that’s under review. Do you know if anyone has integrated it already? Outseta’s support team doesn’t know how to integrate with WeWeb, and I’ve hit a wall troubleshooting this.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [July 5, 2023, 3:25pm UTC](https://community.weweb.io/t/integrating-outseta/3234/5 "2023-07-05T15:25:22Z")

</div>

Hi @karlso 👋

Yes, it’s on our list of integrations to look at but not prioritized currently because other features are more in demand.

I know [this user has integrated Outseta with WeWeb](https://twitter.com/LifeWithArjay/status/1631315770935214081) but not sure how he did it 🙂

Arjay is super active on Twitter and LinkedIn so you might be able to reach out.

---

<div class="post-metadata">

**Author:** ![karlso](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/karlso/32/1545_2.png) [@karlso](https://community.weweb.io/u/karlso)\
**Post date:** [July 5, 2023, 3:28pm UTC](https://community.weweb.io/t/integrating-outseta/3234/6 "2023-07-05T15:28:32Z")

</div>

Ok, thanks for the resource!

---

<div class="post-metadata">

**Author:** ![matt.tidwell](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@matt.tidwell](https://community.weweb.io/u/matt.tidwell)\
**Post date:** [November 28, 2023, 5:22am UTC](https://community.weweb.io/t/integrating-outseta/3234/7 "2023-11-28T05:22:00Z")

</div>

Hey Karlso - I’m currently trying to solve this exact issue with my WeWeb project. Outseta has been great with support - but I can’t figure out a solution.

I saw your login page (super sharp btw) - how did you get Outseta to work?
