WebAuthenticator does not extract parameters contained in a fragment (regression) #15661
Labels
area-essentials
Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info
fixed-in-8.0.0-preview.6.8686
Look for this fix in 8.0.0-preview.6.8686!
i/regression
This issue described a confirmed regression on a currently supported version
platform/android 🤖
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
This test doesn't pass any more (case when parameters are contained in a fragment);
maui/src/Essentials/test/DeviceTests/Tests/WebAuthenticator_Tests.cs
Line 60 in 9b091fd
Introduced by #15245, which changes parameter extraction to happen off of Uri.Query (seems fragment parameters are found in Uri.Fragment)
edeae34#diff-686959c852a62a0b284d6cf92e5b61a6871108fbfc177d8ef9be7ccc94fbc2dfR18
This prevents successful authentication when callback parameters are returned in a fragment.
Steps to Reproduce
Run the WebAuthenticator
ParseQueryString
testsLink to public reproduction project repository
https://github.com/dotnet/maui/
Version with bug
8.0.0-preview.5.8529
Last version that worked well
8.0.0-preview.4.8333
Affected platforms
iOS, Android, Windows, macOS, Other (Tizen, Linux, etc. not supported by Microsoft directly)
Affected platform versions
all
Did you find any workaround?
User can extract any required parameters from
WebAuthenticatorResult.CallbackUri
manuallyRelevant log output
No response
The text was updated successfully, but these errors were encountered: