ThexXTURBOXx / flutter_web_auth_2

Flutter plugin for authenticating a user with a web service
https://pub.dev/packages/flutter_web_auth_2
MIT License
50 stars 49 forks source link

iOS Web browser not closing to Return Auth Code #69

Open rdunlocked18 opened 12 months ago

rdunlocked18 commented 12 months ago

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

Fyandono commented 11 months ago

Have you found the solution?

SunilKividor commented 6 months ago

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

brickbit commented 4 months ago

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