{"version":"2.1.336","anchor":"proxyauthhelper-can-run-for-a-single-dial","canonical_anchor":"proxyauthhelper-can-run-for-a-single-dial","heading":"Proxy authentication can fetch a credential for one connection without using the cache","tier":"use","area":"Internals","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/proxyauthhelper-can-run-for-a-single-dial","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Proxy authentication can fetch a credential for one connection without using the cache\n\nproxyAuthHelper gains an isForOneDial mode that skips the proxy credential cache and pending-challenge handling and returns nothing on failure\n\n**What**\n\n`proxyAuthHelper` is a setting that runs your own command to get a credential for a proxy server that asks for a password. It now has a single-dial mode, `isForOneDial`. A dial is one attempt to open a connection.\n\n- In this mode the helper skips the pending-challenge handling, and it neither reads nor writes the credential cache `proxyAuthCache`.\n\n- If it fails, it returns nothing and does not fall back to a cached value.\n\n- The code that builds the `Proxy-Authorization` header was rewritten to use this mode. It used to reset the cache timestamp and stop when `proxyAuthPendingChallenge` was set. It now computes the credential once with `isForOneDial` and returns `Proxy-Authorization`, or nothing if there is no credential.\n\n**Why**\n\nIf you connect through an authenticating proxy, credentials for one connection are now fetched fresh rather than read from or written to the shared cache. This could change how proxy sign-in behaves, and a failed fetch no longer falls back to an older stored credential.\n\n- Area: Internals\n- Names: `proxyAuthHelper`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: no"}