How to Sign out of ASP.NET from End Session Endpoint? #99
-
IdentityServer version7.1 .NET version9.0 DescriptionWe have an Uno application that is authenticating users with Open ID Connect via Duende Identity Server. Everything works great and I wanted to thank you for all your efforts out there. 🙏 The problem we are having is when the user logs out. This calls Is there a way to do this? Thank you for any assistance you can provide. Reproduction stepsNA Expected behaviorNo response LogsNo response Additional contextThank you again for creating such a great product! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Since you're mentioning cookies and ASP.NET Core, are you hosting an Uno WebAssembly app with ASP.NET Core? |
Beta Was this translation helpful? Give feedback.
-
Typically a native app (iOS, Android) relies on the access token/refresh token mechanism of OAuth to do its work. It doesn't need or use the session. So it's OK to set the session lifetime to a short duration since it's only used to authenticate the user. |
Beta Was this translation helpful? Give feedback.
-
The "Remember my login" feature sets a separate cookie in the browser, so you should be fine. Regarding the call to |
Beta Was this translation helpful? Give feedback.
-
Correct, but it doesn't delete the cookie as we are discussing, correct? I am trying to understand why Duende is setting cookies it does not delete following the expected workflow. That is, it will log in the user, set cookies, but it will log out (end session) without deleting the cookies it set. Additionally, as it sounds like there are two cookies with the
I would appreciate some further clarity around this. The only web client I am aware of is the one that I am using for Uno. Thank you for your continued assistance. |
Beta Was this translation helpful? Give feedback.
Thank you for your continued patience and kind guidance while I learn all the moving pieces here @RolandGuijt. As I stated earlier there are quite a bit and you mentioned a few more.
I did try your suggestion but unfortunately, it did not address the issue. However, after some searching, I found what worked for me here:
https://stackoverflow.com/a/59705395
I think for now this will be a good solution but if we end up having to need more control over this I will look further into front channel clients and getting that implemented. It's a shame there isn't already an available demonstration of this feature with your documentation. This would save a lot of time and headache of having to crea…