🐛 Show invalid_auth for rejected credentials in the config flow #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "config-flow-typed-exceptions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
validate_inputmaps everyauthenticate()failure tocannot_connect, so a wrong password shows the user a misleading error. ItsInvalidAuthbranch (thecwt_sessioncookie check) is dead code: since comwatt-client 0.3.x,authenticate()itself raises when the cookie is missing.Change
ComwattAuthError(credentials rejected, 401/403) →invalid_authcannot_connect, as before_FakeCookie/_FakeCookieJartest plumbingTests
test_invalid_auth_when_credentials_rejected(401 →invalid_auth) — replaces the cookie-based testtest_cannot_connect_on_server_error(503 →cannot_connect, guards against outages being misreported as bad passwords)⚠️ Merge after #37 (bump to comwatt-client 0.3.4): the
ComwattAuthError⇒ "credentials rejected" guarantee only holds from 0.3.4.5efc458b43to24a97d89dcWIP: 🐛 Show invalid_auth for rejected credentials in the config flowto 🐛 Show invalid_auth for rejected credentials in the config flow