Woomob 1702 basic auth better error handling and tracking #15136
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes WOOMOB-1702
Description
Coming from this P2 were it was surfaced several issues about not supporting basic auth: p91TBi-dC6-p2
This PR addresses a few changes we agreed on prior to implementing basic auth support in the apps:
Test Steps
Enable basic auth on you test site prior to following the next testing steps. To enable basic auth on any existing Pressable site just navigate to the site > Advanced > Basic Authentication.
Or use this site url to run the tests: https://woocommerce-android-realapi-tests.mystagingwebsite.com/
Test case 1: Site creds with basic auth
Important thing here is the "error_type":"BASIC_AUTH_REQUIRED"
Authentication failed, error: BASIC_AUTH_REQUIRED,Test case 2: Log in normally with site credentials
Just test that login with site credentials for any other site were basic auth is not enabled works as expected.
Images/gif
Screen_recording_20251223_164937.mp4
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.