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] No callback when canceling B2C Web Page #23

Open
KeeganDC opened this issue Jun 15, 2023 · 0 comments
Open

[Web] No callback when canceling B2C Web Page #23

KeeganDC opened this issue Jun 15, 2023 · 0 comments

Comments

@KeeganDC
Copy link

KeeganDC commented Jun 15, 2023

I am encountering an issue when canceling the B2C web page
It works correctly on Android, but I receive an error when canceling on the web platform

Steps are:

  1. Start the Flutter app
  2. Click on Login
  3. Load the B2C web page successfully
  4. Close the B2C web page
  5. Observe the error/logs mentioned below

Web (error) logs:

Upon canceling or closing the B2C web page, the following error is thrown:
Error: PlatformException(error, BrowserAuthError: user_cancelled: User cancelled the flow., null, null)
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49 throw
packages/flutter/src/services/message_codecs.dart 652:7 decodeEnvelope
packages/flutter/src/services/platform_channel.dart 310:18 _invokeMethod
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50 <fn>
dart-sdk/lib/async/zone.dart 1661:54 runUnary
dart-sdk/lib/async/future_impl.dart 147:18 handleValue
dart-sdk/lib/async/future_impl.dart 784:44 handleValueCallback
dart-sdk/lib/async/future_impl.dart 813:13 _propagateToListeners
dart-sdk/lib/async/future_impl.dart 584:5 [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 657:7 callback
dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 177:15 <fn>

Android (expected result) log

I/flutter (26492): [AzureB2C] Callback received...
I/flutter (26492): [AzureB2C] Callback data: {"tag":"3cdc05e6-04e1-4063-905d-ba5161c02abf","source":"policy_trigger_interactive","reason":"USER_CANCELLED_OPERATION"}
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