flutter_web_auth_2 icon indicating copy to clipboard operation
flutter_web_auth_2 copied to clipboard

iOS Web browser not closing to Return Auth Code

Open rdunlocked18 opened this issue 1 year ago • 3 comments

Describe the bug

I am using Custom SSO to login to Application. Authentication is happening I am getting the code in the URL but am not able to callback to application.

Usage

Redirect URL: https://localhost:3000/auth.html (configured on auth server) Callback Scheme: 'https' Not Using Universal Links

Expected behavior

The browser should close & return the proper URL with the code parameter hence proceeding to the next step which is token generation. This is Happening on Android, Windows, and Web properly but not on iOS.

Screenshots

Simulator Screenshot - iPhone 14 Pro Max - 2023-09-20 at 19 22 43

rdunlocked18 avatar Sep 20 '23 14:09 rdunlocked18

Have you found the solution?

Fyandono avatar Sep 26 '23 06:09 Fyandono

@rdunlocked18 @Fyandono Did you find any solution for this in IOS ?

SunilKividor avatar Mar 06 '24 17:03 SunilKividor

I have faced a similar problem, have you tried adding FlutterDeepLinkingEnabled as a boolean variable with value true in the Info.plist file? On the other hand, if it doesn't work I would try to debug the SwiftFlutterWebAuth2Plugin file in Xcode. With these steps I got it to work

brickbit avatar May 06 '24 21:05 brickbit