# Ignition idP Force Auth Behaviour

**URL:** <https://forum.inductiveautomation.com/t/ignition-idp-force-auth-behaviour/51554>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [October 2, 2021, 6:12am UTC](https://forum.inductiveautomation.com/t/ignition-idp-force-auth-behaviour/51554 "2021-10-02T06:12:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [October 2, 2021, 6:12am UTC](https://forum.inductiveautomation.com/t/ignition-idp-force-auth-behaviour/51554/1 "2021-10-02T06:12:49Z")

</div>

Hi,

I curious if what I’m experiencing with `system.perspective.login(forceAuth=True)` with the Ignition idP is expected behaviour or a bug.

If userX is logged in, and userY clicks a login button, the button fires `system.perspective.login(forceAuth=True)` and presents the Ignition idP login page.

If userY logs in successfully, userY is now logged in. All good.

If userY cancels, then the session remains logged in as userX. I would expect the session to be now logged out. If userX was asked to reauthenticate and couldn’t, userX should be logged.

Maybe I’m misinterpreting the expected behaviour. Please shed some light.

8.1.10 if that is relevant.

Regards,  
Deon

---

<div class="post-metadata">

**Author:** ![jspecht](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jspecht/32/6465_2.png) [@jspecht](https://forum.inductiveautomation.com/u/jspecht)\
**Post date:** [October 4, 2021, 3:26pm UTC](https://forum.inductiveautomation.com/t/ignition-idp-force-auth-behaviour/51554/2 "2021-10-04T15:26:23Z")

</div>

That is expected behavior. If you want to log the current user out, you’d need to invoke the logout script or action to do that.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [October 4, 2021, 4:12pm UTC](https://forum.inductiveautomation.com/t/ignition-idp-force-auth-behaviour/51554/3 "2021-10-04T16:12:55Z")

</div>

Thanks.

The onus is on the currently logged on user to log out when he is done anyway.
