WebAuthenticationProvider not opening the browser #19577
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
Upon creating a new project and selecting web authentication, clicking the login button does nothing. Even after setting the LoginStartUri for the WebAuthentication property?(not sure what this is called) in appsetting.development.json to the correct oauth url.
I am trying to use Google Oauth 2, I have made a desktop client along with setting up the rest of the authentication in the Google API Console. This is how my LoginStartUri looks:
"LoginStartUri": "https://accounts.google.com/o/oauth2/v2/auth?client_id=1075413216201-njiem6pnakgejlp7ducmimdue9mavu2c.apps.googleusercontent.com&redirect_uri=myprotocol:/authentication-callback&response_type=code&scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email&access_type=offline",
Expected behavior
I expect that clicking the login button would open the web browser so that the oauth login flow could begin.
How to reproduce it (as minimally and precisely as possible)
Create a new project leaving everything as default expect for authentication which is set to web.
min.zip
Workaround
The LoginStartUri works using Launcher.LaunchUriAsync(uri), except for the callback. But this means handling everything manually instead of utilizing the authentication provided by platform uno.
Works on UWP/WinUI
No
Environment
No response
NuGet package version(s)
No response
Affected platforms
iOS, Skia (macOS), Windows (WinAppSDK)
IDE
Rider macOS, Visual Studio 2022
IDE version
Rider: Build #RD-243.24978.27, built on February 7, 2025. Visual Studio: Version 17.13.1
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: