We are currently distributing internal test builds of our iOS app to external QA testers without going through TestFlight. While standard development builds authenticate smoothly, our testers are running into an issue where the Auth0 Universal Login fails to redirect back to the application after entering credentials when the build is packaged and deployed via an external signing tool.
Under normal conditions, our universal links and callback URLs match the registered bundle identifier in the Auth0 dashboard. However, when the package is processed by the signing tool, the provisioning profile adjustments seem to interfere with the custom scheme handling, causing the web authentication session to either stall or throw an invalid redirect error.
Has anyone encountered similar callback verification issues or Keychain sharing breakages when testing IPA files modified by a signing tool? We would love some advice on whether configuring custom URL scheme fallbacks in the tenant settings or adjusting the iOS SDK redirect handler is the recommended approach here.
Hi @jordanmitchell
Welcome to the Auth0 Community!
I understand you are experiencing redirect failures with the Auth0 Universal Login on Apple iOS when using an external signing tool, which modifies provisioning profiles and causes web authentication sessions to stall or throw invalid redirect errors.
Root Cause
When an external tool re-signs an Apple iOS application archive (IPA), it typically modifies the App ID Prefix (Team ID) and alters or strips entitlements. This breaks two critical components of the Auth0 Software Development Kit (SDK) for iOS:
-
Universal Links (ASWebAuthenticationSession): In Apple iOS 17.4 and later, the operating system uses the webcredentials service in your Associated Domains entitlement to verify the HTTPS callback. When the signing tool alters entitlements, the operating system cannot verify the Apple App Site Association (AASA) file, causing the web session to fail.
-
Keychain Sharing: The modified Team ID changes your application’s keychain access group. Since the Auth0 SDK securely stores session credentials in the Keychain by default, this change prevents the application from accessing previously stored tokens or sharing credentials across application groups.
Official Workaround
To resolve this issue for externally signed test builds, we recommend configuring Custom URL Scheme fallbacks instead of strictly enforcing Universal Links. Because Custom URL Schemes rely entirely on local application configuration rather than external Apple verification, they are resilient against entitlement changes made by external signing tools.
Please follow these steps to implement the official workaround:
-
Register the Scheme in the Auth0 Dashboard: Navigate to your Auth0 Dashboard and add the custom scheme to your Allowed Callback URLs and Allowed Logout URLs. The standard format is YOUR_BUNDLE_IDENTIFIER://YOUR_AUTH0_DOMAIN/ios/YOUR_BUNDLE_IDENTIFIER/callback.
-
Update the Xcode Info.plist File: Add the custom scheme to the URL Types section in your Xcode project so the Apple iOS operating system knows to route it to your application.
-
Adjust the Auth0 Software Development Kit (SDK) Configuration: Ensure you are not strictly enforcing Universal Links in your codebase. For example, remove the .useHTTPS() modifier on the WebAuth call so the Auth0 Swift SDK can automatically fall back to Custom URL Schemes when Universal Links fail.
-
Retain Keychain Entitlements in the Signing Tool: To resolve the Keychain breakage during testing, you must configure your external signing tool to retain the original keychain-access-groups entitlement. If the tool cannot retain this, testers will be forced to log in fresh on every newly signed build.
Hope the above information helped you overcome the issue! Feel free to reach out to us for any other issues or requests, we will gladly look into it.
Have a great one!
Gerald