ASWebAuthenticationSession + Universal Links Callback Issue

Problem Description:

In our App, When we launch the web login part using ASWebAuthentication + Universal Links with callback scheme as "https", we are not receiving callback.

Note:

  1. We are using "SwiftUIWebAuthentication" Swift Package Manager to display page in ASWebAuth.
  2. But when we use custom url scheme instead of Universal link, app able to receive call back every time.
  3. We use ".onOpenURL" to receive universal link callback scheme.

Do universal links work in your app in general? If you create a Notes document with one of your links and tap the link there, does it open in your app?

For lots of general advice on how to debug universal links, see TN3155 Debugging universal links

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • The URL loaded as part of ASWebAuthentication is not redirecting back into our application with Universal Link option, however it works perfectly with CustomURL scheme.
  • Universal Link in combination with ASWebAuth is the issue and area of the concern.
  • Does Universal Link and ASWebAuth combination to get the redirection is known issue in Apple ?

Thank you.

@DTS Engineer In General, Universal link is working for notification and deep linking ..We debug also and looks fine for us in the upper environment and looks like issue in lower environment

Our App still not working for upper environment where universal link configurations are correct ..

Our app receives a login redirect call from the backend, but AsWebAuthenticationSession + Universal Link has weird behaviour but at the same time AsWebAuthenticationSession + customURL works perfectly.

As per apple document it can be https or customURL also.

https://developer.apple.com/documentation/authenticationservices/authenticating-a-user-through-a-web-service

ASWebAuth + Universal link issue

-In login iOS application we are launching the Login URL in the ASWebAuth to support the auto-saving of the username and password. -It enables the passkey options seamlessly. When user enters into the Native app using the passkey or saved credentials, we send an Auth-Return URL to Login system

-login in response of successful authentication redirect user to the Auth-Return URL along with an authenticated Auth-Code value.

-When the Auth-Return URL is evaluated, it is expected that we should redirect user back the Native application and proceed with the session of the user along with the Auth-Code received.

Problem is ASWebAuth not dismissing and handover to app

ASWebAuthenticationSession + Universal Links Callback Issue
 
 
Q