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

[Web] Redirect page does not close after successful sign-in with Azure B2C web page #22

Open
KeeganDC opened this issue Jun 14, 2023 · 1 comment

Comments

@KeeganDC
Copy link

KeeganDC commented Jun 14, 2023

Issue Description

I'm facing an issue on the web platform where the redirect page does not close automatically and returns control back to my app.

if (_interactionMode == B2CInteractionMode.REDIRECT) {
        var result = await _b2cApp!.acquireTokenRedirect(RedirectRequest()
          ..scopes = scopes
          ..authority = _getAuthorityFromPolicyName(policyName)
          ..loginHint = loginHint);
        return; //redirect flow will restart the app
      } else {
        var result = await _b2cApp!.acquireTokenPopup(PopupRequest()
          ..scopes = scopes
          ..authority = _getAuthorityFromPolicyName(policyName)
          ..loginHint = loginHint);

result is never returned for both acquireTokenRedirect & acquireTokenPopup

I have integrated the B2C flow and JSON config into my Android + Web app, and everything works fine except for this specific issue. Upon signing in, the redirect page does not close automatically, unlike on Android.

Please let me know if there is something I have missed or if any configuration or implementation steps could be causing this behavior.

@KeeganDC
Copy link
Author

KeeganDC commented Jun 15, 2023

after tracing the code, it seems that _convertMsalPromise never finished/returned a value which is called by acquireTokenRedirect and acquireTokenPopup

not sure why this is happening on web

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

1 participant