# How to redirect from Okta SSO Login page to the mobile app if they cancel/stop the Okta SSO Login in Xamarin

**URL:** <https://devforum.okta.com/t/how-to-redirect-from-okta-sso-login-page-to-the-mobile-app-if-they-cancel-stop-the-okta-sso-login-in-xamarin/32650>\
**Category:** Questions\
**Tags:** dotnet, xamarin\
**Created:** [March 19, 2025, 4:55pm UTC](https://devforum.okta.com/t/how-to-redirect-from-okta-sso-login-page-to-the-mobile-app-if-they-cancel-stop-the-okta-sso-login-in-xamarin/32650 "2025-03-19T16:55:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gian](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gian](https://devforum.okta.com/u/gian)\
**Post date:** [March 19, 2025, 4:55pm UTC](https://devforum.okta.com/t/how-to-redirect-from-okta-sso-login-page-to-the-mobile-app-if-they-cancel-stop-the-okta-sso-login-in-xamarin/32650/1 "2025-03-19T16:55:32Z")

</div>

We have a Xamarin mobile app project and recently integrated the Okta SSO Login.

I’m using WebAuthenticator.AuthenticateAsync(WebAuthenticatorOptions) method for accessing/navigating both Okta Login and Logout pages/process and everything is working fine, however, there’s a scenario in which the user can cancel the SSO Login process. Every time they click the cancel/back buttons, it will redirect to the APP and keep spinning, awaiting a proper response (Okta Token).

How can I implement/handle the cancel SSO Login process to prevent that issue?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [April 18, 2025, 4:56pm UTC](https://devforum.okta.com/t/how-to-redirect-from-okta-sso-login-page-to-the-mobile-app-if-they-cancel-stop-the-okta-sso-login-in-xamarin/32650/2 "2025-04-18T16:56:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
