title: Azure Active Directory B2C navigation failures using Xamarin Forms
body: <p>using the built in sign-up and sign-in policy with azure AD, the user can signup and the account gets created, but the UI never returns back to the app.  It stays here</p>
  
  <p><a href="https://i.stack.imgur.com/mzRv5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mzRv5.png" alt="enter image description here"></a></p>
  
  <p>The same issue happens when testing the user flow in the azure portal.</p>
  
  <p>I'm not sure what to do or where to go from here on testing this?</p>
  
  <p>There are other little funny quirks that I notice also.  When the cancel button is clicked the UI never redirects back to the sign in page.  the loading progress bar moves across as if something should be happening but it never goes back to the previous page.</p>
  
  <p><a href="https://i.stack.imgur.com/mmxRy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mmxRy.png" alt="enter image description here"></a></p>
  
  <p>Same thing when trying to go forgot password page.</p>
  
  <p><strong>EDIT</strong>
  here is a repo <a href="https://github.com/champcbg/AzureAdB2CTest" rel="nofollow noreferrer">https://github.com/champcbg/AzureAdB2CTest</a> with azure ad credentials stripped out that follows these instructions <a href="https://docs.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/authentication/azure-ad-b2c" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/authentication/azure-ad-b2c</a> the sign in and sign up work successfully i can see the results in azure, but the hand off never is given back to the android app.</p>
  
  <p><a href="https://i.stack.imgur.com/LaK6s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LaK6s.png" alt="Code Block"></a></p>
  
  <p>the code in the green block is executed and that is how the sign-in and sign-up pages are shown.  after either action the code never comes back to line 79 (red arrow).</p>
  
  <p>but if the back button (on the phone) is pressed control is given back to the app, the code falls into the exception block as a "authentication_canceled" event.</p>