HTTP 401 Through a Proxy: Check WWW-Authenticate, Token Scope, and Redirects
Diagnose HTTP 401 responses through a proxy by separating target authentication from proxy authentication, then checking WWW-Authenticate, token scope, session expiry, redirects, and request headers.