We have a React Native app which uses the “react-native-auth0” library for user login.
For SSO, some of our iOS customers using VPN have a requirement that the login page (and subsequent SSO sign in page) should open in the non-Safari default browser (Airwatch Web Workspace One). This is the default browser on their iOS device.
How can we ensure that the Auth0 SDK is opening the default browser, and not Safari, for login?
We do not override any default options when calling Auth0:
Hello,
Check iOS Configuration:
Verify that your iOS project is correctly configured to use the system’s default browser. The Auth0 SDK should automatically use the default browser without any additional configuration. Official Website
Ensure that there are no custom overrides or settings that force the use of Safari.
Update Dependencies:
Make sure you are using the latest version of the react-native-auth0 library. Outdated versions may have compatibility issues with newer iOS versions.
Check if there are any updates or patches related to browser behavior in the library’s release notes.
Test on a Real Device:
Sometimes simulators behave differently from real devices. Test the login flow on an actual iOS device (with Airwatch Web Workspace One installed) to verify if the default browser opens correctly.
Debugging:
Use debugging tools (such as Xcode) to inspect any logs or errors related to the authentication process. Look for any clues indicating why Safari might be used instead of the default browser.
iOS App Transport Security (ATS):
Ensure that your app complies with ATS requirements. ATS enforces secure connections and might impact the browser selection.
Check if your app’s Info.plist file has any specific ATS exceptions that could affect browser behavior.
Auth0 Configuration:
Review your Auth0 configuration. While the SDK itself doesn’t explicitly control the browser, incorrect settings in your Auth0 dashboard could impact the behavior.
Make sure you haven’t set any custom rules or hooks that interfere with the browser selection.
Best Regards
nestorg780