Add Authentication to .NET MAUI Apps with Auth0

Hi @vamsi.k,
Sorry for the delay and thanks for your patience.

Unfortunately the popup window is something that Apple enforces and currently the SDK can’t control it.
Here are a few references that are relevant to this issue.

Actually, you can get rid of the popup window by giving up SSO (see here for more details). But you can’t do this with the MAUI SDK. You can do this by using the Auth0.OidcClient.iOS package, which gives you more control over the underlying system.
In this case, you have two options:

  1. Use the PrefersEphemeralWebBrowserSession property as follows:
 client = new Auth0Client(new Auth0ClientOptions
  {
        Domain = domain,
        ClientId = clientId,
        Browser = new ASWebAuthenticationSessionBrowser(
            new ASWebAuthenticationSessionOptions()
            {
                // Support with iOS 13.0+
                PrefersEphemeralWebBrowserSession = true
            })
  });
  1. Use the SFSafariViewControllerBrowser class:
client = new Auth0Client(new Auth0ClientOptions
  {
        Domain = domain,
        ClientId = clientId,
        Browser = new SFSafariViewControllerBrowser()
  });

I hope this helps.

cc: @pixelinindia07