Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirecting on IOS #14

Closed
snowybeast13 opened this issue Aug 1, 2023 · 3 comments
Closed

Redirecting on IOS #14

snowybeast13 opened this issue Aug 1, 2023 · 3 comments

Comments

@snowybeast13
Copy link

Hi guys, i have issue with redirection after login on IOS. Tried different redirect URI's and nothing is happening. In logs on azure I can see that user is successfully log in, but after i click Sign in button nothing is happening. Any idea how to solve redirection issue? Thank you

@mohanajuhi166
Copy link
Collaborator

@snowybeast13 thanks for bringing this to our notice. I will have a look soon .

@SzczygielDev
Copy link
Contributor

I also run into same issue, I tried few things and in my case it was not executing onPageFinished of WebViewController inside ADB2CEmbedWebView after successfully signin in. I found that onUrlChange of WebViewController captures url change, so this snippet allowed me to sign in on iOS:

onUrlChange: (change) { final Uri response = Uri.dataFromString(change.url!); onPageFinishedTasks(change.url!, response); }

I don't know whether its proper solution and will work in all cases.

@filip8600
Copy link
Contributor

The suggestion also worked for me.

I also then disabled the old "onPageFinished" - as to not get double events emitted on Android.

filip8600 added a commit to filip8600/aad_b2c_webview that referenced this issue Oct 16, 2023
Use           onUrlChange instead of onPageFinished based on response from SzczygielDev microsoft#14 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants