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.
- AppAuth-iOS
- how-to-avoid-the-ios-permission-alert
- Do we have a way to not show the confirmation pop-up
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:
- 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
})
});
- Use the
SFSafariViewControllerBrowser
class:
client = new Auth0Client(new Auth0ClientOptions
{
Domain = domain,
ClientId = clientId,
Browser = new SFSafariViewControllerBrowser()
});
I hope this helps.
cc: @pixelinindia07