# Okta SSO session time

**URL:** <https://forum.bubble.io/t/okta-sso-session-time/334336>\
**Category:** Need help\
**Created:** [August 6, 2024, 2:48pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336 "2024-08-06T14:48:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![giosegar](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/giosegar/32/90638_2.png) [@giosegar](https://forum.bubble.io/u/giosegar)\
**Post date:** [August 6, 2024, 2:48pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/1 "2024-08-06T14:48:33Z")

</div>

I used [these instructions](https://okta-template.bubbleapps.io/version-test) to set up Okta and Bubble SSO, but sessions are expiring within a couple of hours for my clients. They sign in, leave their desks for a few hours, and have to sign back in again.

We’ve already checked their Okta organization settings and their sessions are meant to last for 180 days once logged in, so that’s not the issue.

Has anyone else run into this issue with Okta or other SSO providers? Is there any way to adjust the session time on Bubble’s side or troubleshoot why it’s expiring so quickly?

---

<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:** [August 6, 2024, 5:16pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/2 "2024-08-06T17:16:25Z")

</div>

Hey @giosegar,

That’s the way I setup Okta in one of my apps too. Are you saying the session on Bubble expiring? Like your users get kicked to the screen to log in again?

---

<div class="post-metadata">

**Author:** ![giosegar](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/giosegar/32/90638_2.png) [@giosegar](https://forum.bubble.io/u/giosegar)\
**Post date:** [August 6, 2024, 5:59pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/3 "2024-08-06T17:59:16Z")

</div>

@johnny Yes, exactly.

---

<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:** [August 6, 2024, 6:30pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/4 "2024-08-06T18:30:31Z")

</div>

How’s your app setup?

---

<div class="post-metadata">

**Author:** ![giosegar](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/giosegar/32/90638_2.png) [@giosegar](https://forum.bubble.io/u/giosegar)\
**Post date:** [August 6, 2024, 6:49pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/5 "2024-08-06T18:49:51Z")

</div>

@johnny What do you mean? Are you asking how I set up the integration, or something else?

---

<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:** [August 6, 2024, 7:57pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/6 "2024-08-06T19:57:41Z")

</div>

So I’m assuming you have a login page with a button to log in with social login, then select Okta as the provider?

Then what happens? The user’s redirected to a logged in page? Is there at any point a log out workflow action that is run?

---

<div class="post-metadata">

**Author:** ![giosegar](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/giosegar/32/90638_2.png) [@giosegar](https://forum.bubble.io/u/giosegar)\
**Post date:** [August 6, 2024, 8:11pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/7 "2024-08-06T20:11:13Z")

</div>

Yes, we have a login page with an SSO button. They click it, it takes them to Okta, and they’re redirected back to the page as a logged in user once done. No log out workflow.

---

<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:** [August 6, 2024, 8:21pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/8 "2024-08-06T20:21:53Z")

</div>

And you’re saying randomly the user gets signed out of your Bubble app?

---

<div class="post-metadata">

**Author:** ![giosegar](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/giosegar/32/90638_2.png) [@giosegar](https://forum.bubble.io/u/giosegar)\
**Post date:** [August 6, 2024, 10:13pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/9 "2024-08-06T22:13:41Z")

</div>

@johnny Yes, I believe typically when they have been away from the computer rather than during an active session while they’re clicking around. But we’re talking multiple times per day.

---

<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:** [August 6, 2024, 10:25pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/10 "2024-08-06T22:25:14Z")

</div>

That sounds like something that’s happening in your app versus Okta. I have an app where users sign in with Okta and have no issues with being signed out of the app

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 15, 2024, 2:48pm UTC](https://forum.bubble.io/t/okta-sso-session-time/334336/11 "2024-10-15T14:48:39Z")

</div>

Closed on October 15, 2024, 2:48pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
