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

[Bug] Browser window not closed - MAUI Android #4699

Open
Pmr-precure opened this issue Apr 3, 2024 · 9 comments
Open

[Bug] Browser window not closed - MAUI Android #4699

Pmr-precure opened this issue Apr 3, 2024 · 9 comments

Comments

@Pmr-precure
Copy link

Library version used

4.60.1

.NET version

MAUI .net 8

Scenario

PublicClient - mobile app

Is this a new or an existing app?

This is a new app or experiment

Issue description and reproduction steps

After a successful login the browser keeps running with the login screen on.

I tested it my own project and in the MAUI samples project, same happens.

We have a Xamarin app that we are moving to MAUI, and here the browser closes after login.

image

Relevant code snippets

No response

Expected behavior

Browser/Tab should close after login

Identity provider

Azure B2C Custom Policy

Regression

No response

Solution and workarounds

No work arounds found.

@Pmr-precure Pmr-precure added needs attention Delete label after triage untriaged Do not delete. Needed for Automation labels Apr 3, 2024
@gladjohn gladjohn added bug P2 scenario:Mobile-Android public-client and removed untriaged Do not delete. Needed for Automation needs attention Delete label after triage labels Apr 3, 2024
@localden
Copy link
Collaborator

localden commented Apr 3, 2024

@Pmr-precure - and you're using the system browser API, I am assuming?

@Pmr-precure
Copy link
Author

Yes and tested it on multiple devices, both running Android 13 though.

@Pmr-precure
Copy link
Author

No one else has this issue?

@localden
Copy link
Collaborator

@Pmr-precure - I will need to test this to verify the scenario. Thank you for the feedback, I will follow-up on this issue.

@Pmr-precure
Copy link
Author

@Pmr-precure - I will need to test this to verify the scenario. Thank you for the feedback, I will follow-up on this issue.

Did you have time to look at it? :) we are still facing this issue. BR

@localden localden self-assigned this May 19, 2024
@localden
Copy link
Collaborator

@Pmr-precure also to confirm - this only happens for Azure B2C and not for Entra ID?

@Pmr-precure
Copy link
Author

@Pmr-precure also to confirm - this only happens for Azure B2C and not for Entra ID?

To be honest im not sure about the difference. We use a Azure b2c sign in only policy. Not custom. It works fine in our xamarin app. But in Maui it doesnt close the browser window after a login. BR

@bgavrilMS
Copy link
Member

There is an AuthenticationContinuationHelper class which is supposed to be notified of when the browser flow finishes. It's in your code. Does this get hit at all?

@Pmr-precure
Copy link
Author

Pmr-precure commented May 21, 2024

There is an AuthenticationContinuationHelper class which is supposed to be notified of when the browser flow finishes. It's in your code. Does this get hit at all?

Okay i just tested on my Pixel 8 and an Emulator, it does trigger and call AuthenticationContinuationHelper. But it still doesnt close the brower window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants