Files
tmail-flutter/test
Benoit TELLIERandClaude Opus 5.5 88ae784f5f fix(network): never send credentials with WebFinger discovery
AuthorizationInterceptors attaches the user's Basic or Bearer credentials
to every request of the shared Dio, whatever the host. WebFinger requests
are public discovery and are also sent to hosts guessed from the email
address domain (autodiscover., jmap., ...), which may be third parties;
after a session expiry the stale credentials were still attached.

Add a per-request opt-out (RequestOptions.extra skipAuthorization) and
use it for WebFinger.

A general host allow-list (JMAP origin, session capability hosts, OIDC
userinfo host) is left for a follow-up: it needs to be kept in sync
across the main, isolate and FCM background paths.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 10:55:07 +02:00
..