This produces a 400 error to firebase since this form of authentication is disabled for the application. As a result the application screen is blank (white) and the following is printed to the debug output:
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Net.Http.dll
Exception thrown: 'Firebase.Auth.FirebaseAuthHttpException' in Firebase.Auth.dll
Exception thrown: 'Firebase.Auth.FirebaseAuthHttpException' in System.Private.CoreLib.dll
Exception thrown: 'Firebase.Auth.FirebaseAuthHttpException' in System.Private.CoreLib.dll
These exceptions are not surfacing the underlying failure (although it appears they should based on code in Auth.FirebaseAuthHttpException). Maybe this is a problem of DLLs not surfacing out exception messages?
Expected Behavior
When there is an exception the exception message is output to the debug console
Anonymous login is not set as the default in the example application or this behavior is specified in the README
Patch
Comment or remove the following line in MainWindow.xaml.cs and refactor appropriately:
Reproduction
Auth.WPF.Sample
projectProblem
If the user is null (it will be on load) the following line
MainWindow.xaml.cs
will try to authentication anonymously:This produces a 400 error to firebase since this form of authentication is disabled for the application. As a result the application screen is blank (white) and the following is printed to the debug output:
These exceptions are not surfacing the underlying failure (although it appears they should based on code in
Auth.FirebaseAuthHttpException
). Maybe this is a problem of DLLs not surfacing out exception messages?Expected Behavior
Patch
Comment or remove the following line in
MainWindow.xaml.cs
and refactor appropriately: