XCTestCase: How to dismiss security alert “XXXX” Wants to Use “auth0.com”

I wanted to follow up with you @christoforosl08 in regards to your question on the alert prompt that is still occurring. We had a similar question in Community that @Abhishek_Hingnikar1 gave great insight on here.

To recap he says:

The dialog is shown when ASWebAuthenticationSession (or the older SFAuthenticationSession SFAuthenticationSession | Apple Developer Documentation) is invoked, its an apple enforced popup in order to allow the application the ability to access cookies that are owned by the system shared browser (safari). The goal of this API from apple is to allow identity providers to utilize web based session controls. The only case this prompt will not happen is if you open SFSafariViewController instead, which looks visibly different (looks more like a safari web view instead of a immutable header on top that can be used only to login).

You can learn more about AFWebAuthenticationSession at https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession in short the purpose of this prompt is to protect user’s privacy. Once Custom Domains is set this will allow you to prompt for your domain , therefore the app will show something like YourApp would like to Access YourApp.com in order to login.

Please let me know if this helps clarify the situation. Thanks in advance!