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] Oqtane.Maui - "Remember Me" Control Not Functioning Properly in the .NET Maui application. #3581

Open
thabaum opened this issue Dec 20, 2023 · 3 comments

Comments

@thabaum
Copy link
Contributor

thabaum commented Dec 20, 2023

Issue: "Remember Me" Control Not Functioning Properly in Oqtane Framework

Problem Description

The "Remember Me" control in the Oqtane.Maui application is not functioning as expected, particularly in scenarios related to user login. The current implementation does not effectively leverage browser capabilities to remember accounts through cookies, impacting user experience.

Proposed Solution

It is recommended to utilize the official MAUI API for setting cookies, as outlined in the official documentation. By adopting this approach, we can enhance the "Remember Me" functionality and improve the seamless retention of user credentials.

Steps to Reproduce

  1. Open the Oqtane.Maui application on Windows 11 with the default Firefox browser.
  2. Log in using the "Remember Me" option.
  3. Observe that the password does not auto-complete upon subsequent openings of the application.

Screenshots

(Firefox is my IDE default browser here, but should have same results in Edge as well)

.NET MAUI APP LOGIN
image

Additional Notes

  • The suggested solution involves integrating the MAUI API for cookie management.
  • This enhancement aims to allow the browser to effectively remember user accounts through cookies, ensuring a smoother login experience.
@thabaum
Copy link
Contributor Author

thabaum commented Jan 23, 2024

@sbwalker as I said I would clean up these issues, this one seems to be my next concern while in the area of cookies with .NET MAUI is the login + remember me control.

Really this is currently my last major concern with .NET MAUI is to allow users to save their credentials to avoid having to enter them each visit. The other 2 issues I have are not as big, but still a concern if we can handle them down the road in a more user friendly way.

@thabaum thabaum changed the title Issue: Oqtane.Maui - Login Component - Remember Me does not work making a user have to enter credentials each time they open the application. Issue: "Remember Me" Control Not Functioning Properly in the .NET Maui application. Jan 23, 2024
@sbwalker
Copy link
Member

@thabaum the "Remember Me" functionality in Oqtane relies on cookies (like most web-based applications). Cookies are only applicable for interactions between a standard web browser and a server. Blazor Hybrid relies on a WebView component - which is NOT a standard browser. In fact it is just a wrapper around a native WebView component which is specific to each platform. For Windows, the native WebView is called WebView2 and is based on Edge - but does expose all of the same functionality as the Edge browser... by default it does not support cookies. There are ways within a MAUI application to add custom configurations for the WebView for each platform... however I have never seen a functional example for cookies.

I will not be spending any time on this item, as it is not a high priority in comparison to other Oqtane items. The login is fully functional in its current form.

@thabaum thabaum changed the title Issue: "Remember Me" Control Not Functioning Properly in the .NET Maui application. Bug: "Remember Me" Control Not Functioning Properly in the .NET Maui application. Jan 23, 2024
@thabaum
Copy link
Contributor Author

thabaum commented Jan 23, 2024

@sbwalker Not a priority for Oqtane Framework, so this will be one I can work on and provide a pull request when I can zero in on the solution. Thank you for the added context it will help me with a possible solution. I will of coarse share anything I find out with the community.

Since .NET MAUI is only a year or two old, some more issues will come I will post here to be aware of and I will tackle all I can with solutions. I look forward to more coming from other community contributors.

I really appreciate all the clarifications as we pioneer Oqtane into the future. Your vast wisdom along with past experiences is of great value to this community, thank you!

@thabaum thabaum changed the title Bug: "Remember Me" Control Not Functioning Properly in the .NET Maui application. [BUG] Oqtane.Maui - "Remember Me" Control Not Functioning Properly in the .NET Maui application. Apr 24, 2024
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

2 participants