Cannot separate user cancel from Logout done in oidcclient logout async #69
Replies: 0 comments 3 replies
-
Same issue. Cannot differentiate between a "Cancel" on the initial system prompt and the "Cancel" to close the browser after a successful logout. Both yield a LogoutResult with error of |
Beta Was this translation helpful? Give feedback.
-
Changing to the new supported duende nuget https://github.com/DuendeSoftware/foss/tree/main/identity-model/ the issue remains. Any idea on this topic? |
Beta Was this translation helpful? Give feedback.
-
The only way that i found to prevent the native form to appear is to declare the browsing session as ephimeral.
the ephimeral session, if i have understood well, prevents to save cache and cookies across the browsing sessions and prevents the appearing of the native form. |
Beta Was this translation helpful? Give feedback.
-
i've implemented a net maui 8 mobile application for iOS and Android with IdentityModel.OidcClient v5.0.2. i've an issue logging out in iOS due to the native display alert prompt asking the user if really want to log out
if user tap on "Annulla" button (orange circle), the IBrowser implementation used to open browser in app throws TaskCanceledException.
Here i can intercept the exception and return as result error with detail "UserCancel" as you can see from the code below:
then below the service using oidcclient:
The issue is when user tap on "Continua" in the prompt: the WebAuthenticationBrowser opens the logout page on our identity server 4 identity provider as shown below:
the page performs logout and remains there, so the user must tap on "annulla" button inside the browser. here is the trouble: tapping on cancel in web browser and on cancel on initial prompt performs the same result namely TaskCanceledException.
So in this case i am not able to discriminate between actual user cancellation or login done and user closing web page.
Have you any idea on how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions