mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
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>