- ABP Framework version: 8.1
- UI Type: MAUI (Blazor)
- Database System: EF
There seem to be a problem with authentication in the browser when running the Mobile MAUI client generated by ABP Suite. The page does what it should and the app gets logged into, however, one you have clicked the login button, the page in the web browser never change, it still remains on the login form and there is no indication to the user that login is completed and they can close the browser window.
This is how it looks after login is completed, ie exactly the same as it did before login.
We have mostly seen this when running the MAUI app as a Windows App (Windows Emulator).
16 Answer(s)
-
0
Can add that there does not seem to be any relevant log entries in the Web browser console and as mentioned above, the login in itself actually works, so this is probably something that should be solved by login page refresh to show that login is completed and the browser window can be closed.
-
0
Still waiting for a reply here.
@enisn
-
0
Still waiting for a reply...
-
0
Hi,
MAUI implements the default behaviour of OAuth login and redirects to browser to login. And browser redirect back to the application with a specific scheme like (
yourapp://callback
). By default it should open your application and bring it to the front. But I reproduced the same scenario as you said, it stays in the background but login operation is completed. Here is the 2 cases:- We can implement a new page after redirection to different schemes than
http(s)://
- We can implement the logic in the MAUI app that brings to the front itself on the desktop apps and use can recognize that the login operation is done.
- We can implement a new page after redirection to different schemes than
-
0
On the MAUI, all the codes inside in your application, an you try adding the following code-block into your
LoginOrLogoutViewModel.cs
at the end of theLoginOrLogout()
method:#if WINDOWS if (App.Current?.Windows.LastOrDefault()?.Handler.PlatformView is Microsoft.UI.Xaml.Window window) { // Bring the main window in the front window.Activate(); } #endif
-
0
It's already done by MAUI but it seems WinUI3 has a problem with that
Activate()
method: https://github.com/microsoft/microsoft-ui-xaml/issues/7595It brings too complex solutions,
It seems this one is good: https://stackoverflow.com/a/12758966/7200126 But still I recommend waiting WinUI3 to fix it. In our side we'll add another page when redirect uri scheme is different than
http(s)
-
0
Hi,
MAUI implements the default behaviour of OAuth login and redirects to browser to login. And browser redirect back to the application with a specific scheme like (
yourapp://callback
). By default it should open your application and bring it to the front. But I reproduced the same scenario as you said, it stays in the background but login operation is completed. Here is the 2 cases:- We can implement a new page after redirection to different schemes than
http(s)://
- We can implement the logic in the MAUI app that brings to the front itself on the desktop apps and use can recognize that the login operation is done.
Thanks.
- We can implement a new page after redirection to different schemes than
-
0
It's already done by MAUI but it seems WinUI3 has a problem with that
Activate()
method: https://github.com/microsoft/microsoft-ui-xaml/issues/7595It brings too complex solutions,
It seems this one is good: https://stackoverflow.com/a/12758966/7200126 But still I recommend waiting WinUI3 to fix it. In our side we'll add another page when redirect uri scheme is different than
http(s)
At least some confirmation to the user that authentication was successful goes a long way and should also be independent from redirects etc. ie quite easy to implement. As of now, it just looks like nothing happened unless you know what to look for.
-
0
Seems like this is being handled here now
https://github.com/abpframework/abp/issues/20078
Would be nice if there were a way to know this, I just happened to see this by luck as I don't normally scroll through every issue, is there a way to see GH issues related with support tickets here?
-
0
THe issue has been fixed
https://github.com/volosoft/volo/pull/17940
-
0
THe issue has been fixed
https://github.com/volosoft/volo/pull/17940
Is that a public repo as the link isn't working?
-
0
-
0
-
0
:)
-
0
Will you please refund ticket with this being a confirmed bug/problem? Thanks.
-
0