The webRequest.onAuthRequired API fails to authenticate proxy in MV3

198 views
Skip to first unread message

Dhanur Sehgal

unread,
Dec 12, 2023, 6:13:27 AM12/12/23
to Chromium Extensions
Hi all!
It seems like the webRequest.onAuthRequired API is malfunctioning due to some reason in MV3.
It is a simple web proxy extension, but authentication is returning status 407 (Proxy Authentication Required).
I have tested the proxy server manually and using a proxy switcher extension - the proxy server is working fine.

Here is the code for reference:

Bk script:
chrome.webRequest.onAuthRequired.addListener
(
    function(details, callbackFn)
    {
      return {
        authCredentials: {
          username: "xyz",
          password: " xyz  "
        }
      };
    },
    {
        urls: [
            "<all_urls>"
        ]
    },
    ["asyncBlocking"]
);

-------------------------------------------------------------
Manifest:
    "permissions":
    [
        "proxy",
        "storage",
        "webRequest",
        "webRequestAuthProvider",
        "background"
    ],
    "host_permissions": ["<all_urls>"],

-------------------------------------------------------------

Please help, I'd be very grateful
Thanks in advance =)
Screenshot 2023-12-12 162113.png

Patrick Kettner

unread,
Dec 13, 2023, 11:33:15 AM12/13/23
to Dhanur Sehgal, Chromium Extensions
Hi Dhanur,
It sounds like you are hitting this bug. Do you agree, or am I misunderstanding?

patrick

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/e9488086-815f-4714-92fe-c8a129bb70dcn%40chromium.org.

Dhanur Sehgal

unread,
Dec 13, 2023, 11:38:30 AM12/13/23
to Patrick Kettner, Chromium Extensions
Hi Patrick
Yes, the onAuthRequired event is not getting fired. (I tried logging)

Best,
Dhanur

Dhanur Sehgal

unread,
Apr 13, 2024, 2:25:16 PM4/13/24
to Patrick Kettner, Chromium Extensions
Hi Patrick
I see that the bug has been fixed.
I wanted to know the lowest Chrome release version containing the patch.
How can I know that?

Best,

Patrick Kettner

unread,
Apr 14, 2024, 2:48:14 PM4/14/24
to Dhanur Sehgal, Chromium Extensions
Hi Dhanur!

Chrome 123.0.6263.0 is when the fix landed.

Reply all
Reply to author
Forward
0 new messages