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

WebAuthenticator relogin without showing loging dialog from OAuth Provider #26078

Open
haeberle opened this issue Nov 23, 2024 · 2 comments
Open
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info platform/android 🤖 t/bug Something isn't working
Milestone

Comments

@haeberle
Copy link

Description

I'm following this guide to implement the web authentication in a .net Maui application and it works well.

The user calls the WebAuthenticator for login, as shown in the example above, and successfully logs in. After some time, the user needs to log in again to the OAuth server to renew the access token in order to access backend services.

For this purpose, the WebAuthenticator is called again.

Expected Behavior:
The WebAuthenticator opens the login dialog of the OAuth provider, and upon successful login, the backend server sends the tokens.

Actual Behavior:
The WebAuthenticator performs the login directly without displaying the OAuth provider’s login dialog.

Assumption:
The WebAuthenticator caches the login data, and the OAuth provider dialog is called with this cached information.

Solution:
This behavior is not inherently bad for all use cases, but there should be an option to clear the WebAuthenticator’s cache.

Steps to Reproduce

Using the Maui Essential Demo

Link to public reproduction project repository

https://github.com/dotnet/maui/tree/main/src/Essentials

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No workaround

Relevant log output

@haeberle haeberle added the t/bug Something isn't working label Nov 23, 2024
@jfversluis jfversluis added the area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info label Nov 25, 2024
@jfversluis jfversluis added this to the Backlog milestone Nov 25, 2024
@Mirksar
Copy link

Mirksar commented Nov 25, 2024

Have you tried a Private authentication session?

@haeberle
Copy link
Author

No, according the docs, private session is for iOS only, have issue on Android platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants