# Invalid user after SAML Login

**URL:** <https://forums.rocket.chat/t/invalid-user-after-saml-login/10624>\
**Category:** Community Support\
**Created:** [March 12, 2021, 12:23pm UTC](https://forums.rocket.chat/t/invalid-user-after-saml-login/10624 "2021-03-12T12:23:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![dave.koo](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dave.koo/32/2204_2.png) [@dave.koo](https://forums.rocket.chat/u/dave.koo)\
**Post date:** [March 21, 2021, 9:31pm UTC](https://forums.rocket.chat/t/invalid-user-after-saml-login/10624/8 "2021-03-21T21:31:49Z")

</div>

This sounds like it could be the same issue we’re experiencing in other places.

See my latest comment on this other post where I discuss what I’ve found so far:

> [@How to use iframe authentication for logging in a specific user?](https://forums.rocket.chat/t/how-to-use-iframe-authentication-for-logging-in-a-specific-user/10698):
>
> My web app uses Rocket Chat in an iframe. Users would create accounts and login via our web app. Our web app will turn around to create a Rocket Chat account for that user. I have iframe authentication enabled. My question is that when Rocket Chat sends a request to API URL, my web app needs to know who’s the currently logged-in user. For example, is there a way to pass the web app’s user token in the request to API URL? Thanks.

Another related issue that I’m having, apparently due to the same bug:

> [@User is sometimes logged out right after reconnecting to the RC server](https://forums.rocket.chat/t/user-is-sometimes-logged-out-right-after-reconnecting-to-the-rc-server/10671):
>
> Description tl;dr Can anyone think of a reason why the Rocket Chat web app would randomly log a user out when their browser reconnects to the RC server after being offline for a while? I’m using standard email/password auth and am nowhere near the 90 day login expiration threshold. It’s currently happening around once a day to my users. ============================== I’ve customized RC to properly install and function as a PWA (with very basic service worker). I have the PWA installed on my A…

---

_[View the full topic](https://forums.rocket.chat/t/invalid-user-after-saml-login/10624)._
