suziwen / ZeroOmega

Manage and switch between multiple proxies quickly & easily.
GNU General Public License v3.0
800 stars 21 forks source link

Proxy asks for username and password, despite being already correctly set inside ZeroOmega's configuration #5

Open sn-o-w opened 1 month ago

sn-o-w commented 1 month ago

Browser version & OS version

Problem description

For some reason, it asks for the username and password despite I already set those.

Steps to reproduce issue

  1. Go to ZeroOmega and add a proxy that requires a username and password.
  2. Close and open again Chrome.
  3. Notice you will get a prompt to enter the username and password for the proxy (see the first screenshot below)

Screenshots

Image1 Image2

The displayed text in the first screenshot is in Romanian, but you should be able to reproduce this easily. If necessary, I can set Chrome to English and take another screenshot.

Expected behavior

Proxy to work without manually entering username and password every time.

Actual behavior

Every time I (re)open Chrome, it prompts for a username and password for the proxy.

suziwen commented 1 month ago

I cannot reproduce this issue and need more information on the issue. Maybe the password is wrong, or something else?

When I tested it myself, I found that after changing the configuration password, sometimes I had to restart the entire browser for the password to take effect.

image

sn-o-w commented 1 month ago

Oh, I forgot to mention something: Sometimes, after I restart Chrome, "auto switch" won't work... I have to manually disable and re-enable "auto switch".

Have a look at the following video:

https://github.com/suziwen/ZeroOmega/assets/2406819/f84d74b0-3130-4928-a135-9a2f989cd29f

I had to blur the proxy address and authentication credentials because it is private and I am not the owner of it.

suziwen commented 1 month ago

If I set the wrong password, I can reproduce your problem. Therefore, I suggest you first check whether your password is correct on the options page.

Do not try to enter authentication on the pop-up window. This input information zeroomega cannot be saved for next use.

2024-05-10_08-21

image

sn-o-w commented 1 month ago

If I set the wrong password, I can reproduce your problem. Therefore, I suggest you first check whether your password is correct on the options page.

Do not try to enter authentication on the pop-up window. This input information zeroomega cannot be saved for next use.

2024-05-10_08-21

image

The username and password set inside ZeroOmega are correct, I even checked them inside the backup I exported. So nothing wrong on my side. 🤔

And what I should do if not enter the authentication on the pop-up window? If I press "Cancel" there, nothing happens, livestream won't load on Twitch. If I refresh the page, I get again the authentication pop-up...

A few mins ago I just started my computer and Google Chrome. I didn't even disable and re-enable "auto switch" and I got once again the authentication pop-up...

Something is still wrong with the extension...

If you need my ZeroOmega settings, I exported them: OmegaOptions-snow.txt [MODIFY "TXT" TO "BAK"!!!]

Modify in the exported file these values - snow123456789 + the port with the values of the proxy you are using.

I use mainly ZeroOmega to get rid of Twitch ads, if you can add a Russian proxy with my backup, you should be able to reproduce the issue I'm experiencing.

suziwen commented 1 month ago

I used your config file and then just changed the proxy to my own and everything worked fine.

image

Because I can't reproduce the problem here, maybe you need to troubleshoot it yourself, or see if other users have similar problems.

You can then check to see if it is caused by a conflict with other extensions , and then look at the proxy server logs to see if you can find any clues.

2024-05-10_23-53

sn-o-w commented 1 month ago

I used your config file and then just changed the proxy to my own and everything worked fine.

image

Because I can't reproduce the problem here, maybe you need to troubleshoot it yourself, or see if other users have similar problems.

You can then check to see if it is caused by a conflict with other extensions , and then look at the proxy server logs to see if you can find any clues.

2024-05-10_23-53

I just tried again, but in a Windows Sandbox.

I installed Google Chrome (not the beta version this time), followed by ZeroOmega, and imported the settings. And I verified that the username and password were correctly inserted in ZeroOmega. They are correctly inserted.

And I can reproduce the problem even on a clean instance of Chrome...

1) Have you actually enabled "auto switch"? The issue won't appear if "auto switch" is disabled. 2) Have you opened twitch.tv in a (new) tab after you verified "auto switch" is enabled in ZeroOmega? 3) Have you tried to restart the browser, then to verify "auto switch" is enabled, and afterwards to access twitch.tv website?

I can't understand how you don't encounter this issue at all. My only guess I can think of is that you did something different than me. 🤔

By the way, I hope you use a proxy that requires authentication via username and password... Maybe you use a proxy that doesn't require authentication and therefore you don't get any popup for authentication. 🤔

sn-o-w commented 1 month ago

Look, I even recorded in Windows Sandbox:

https://github.com/suziwen/ZeroOmega/assets/2406819/e5bbfcbc-4485-472f-8cac-6edbff0e363d

suziwen commented 1 month ago

🤔 :thinking:

The proxy server was built locally by myself, port 9053, username/password: u1/p1.

When I change the password to the wrong value, after restarting the browser, the authentication window pops up. When I change it to the correct p1 and restart the browser, I can browse https://www.twitch.tv/ normally. This proves that the authentication proxy function is available. It can also be seen that the authentication function of zeroomega is normal.

https://github.com/suziwen/ZeroOmega/assets/57370/125953bf-d8a6-4795-89c1-6a629ffb973c

sn-o-w commented 1 month ago

🤔 🤔

The proxy server was built locally by myself, port 9053, username/password: u1/p1.

When I change the password to the wrong value, after restarting the browser, the authentication window pops up. When I change it to the correct p1 and restart the browser, I can browse https://www.twitch.tv/ normally. This proves that the authentication proxy function is available. It can also be seen that the authentication function of zeroomega is normal.

zero.mp4

The authentication pop-up you get is a little bit different. Because in my case, I also get the message "Connection to this site is not private" before the "Username" and "Passwords" fields.

Besides, in my case, the browser also loads some bits of the website before getting the authentication pop-up, but in your case the page is completely empty when you are prompted to enter credentials.

Have you imported my profile correctly? Do you actually have the following switch rules?

Screenshot_4

These are important.

suziwen commented 1 month ago

:smile: Great, it can be reproduced.

Due to my own network issues, I cannot directly access twitch.tv, so I added an additional *twitch.tv rule in auto-switch.

After removing this rule, first use a global VPN proxy to ensure that twitch.tv can be accessed directly. Then import your ZeroOmega configuration file, and I can reproduce the authentication pop-up window problem here.


emm, very weird bug, some network requests will not trigger this authHandler function. 🤔 🤔

https://github.com/suziwen/ZeroOmega/blob/815e1626402434b154e117690497a51246338cce/omega-target-chromium-extension/src/module/proxy/proxy_auth.coffee#L63-L84

ayanamist commented 1 month ago

我记得这是一个SwitchyOmega就存在的问题,是Chrome的bug……

suziwen commented 1 month ago

Yes, maybe it is a upstream chromium's bug. Although this issue ( onAuthRequired is not triggered on requests served by a service worker [40870289] - Chromium ) has been fixed, but there is still another issue ( MV3 onAuthRequired is not triggered by requests made by extension pages [40880379] - Chromium ) which about onAuthRequired not triggered.

Joyfal commented 1 month ago

I also have the same issue with twitch, where it will ask me to input username and password again although the configuration has the correct values. It does not happen all the time (only occasionally). This happens with SwitchyOmega as well