-
-
Notifications
You must be signed in to change notification settings - Fork 600
Basic Auth support for Chrome browser #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What version of Chrome are you using? I am using Chrome I also tried Firefox which has it's own proxy configuration dialog. Firefox worked without any issues, presented me a basic auth dialog (Firefox doesn't accept username / password in proxy config) and then the site. I can guarantee that Basic authentication support certainly works :) You can also verify the same using Curl on command line:
|
I am using Chrome:
|
Looks like you are accessing |
I am assuming passing right flags made it work for you. Closing this now, feel free to re-open if necessary. |
@abhinavsingh Thanks for ur response.
|
Is this happening when calling using curl, can you paste your commands for
reference here, both for proxy.py and curl. Thank you.
…------------------------------------------------------
Abhinav Singh,
https://abhinavsingh.com
------------------------------------------------------
On Wed, Sep 25, 2019 at 6:57 PM cypress-zh ***@***.***> wrote:
@abhinavsingh <https://github.com/abhinavsingh> Thanks for ur response.
I tried ur suggestion, changed to listen to all interfaces, and it seems
the it was doing the connection, see log below, and a new problem
ProxyAuthenticationFailed came, I' sure that I have input the username
and password as what I set in server side:
2019-09-26 01:54:10,980 - ERROR - _process_rlist:554 -
Traceback (most recent call last):
File "/opt/rh/rh-python36/root/usr/bin/proxy.py", line 552, in _process_rlist
self._process_request(data)
File "/opt/rh/rh-python36/root/usr/bin/proxy.py", line 471, in _process_request
raise ProxyAuthenticationFailed()
ProxyAuthenticationFailed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#89?email_source=notifications&email_token=AAA6Y4KEWI3BQSEZQ4ZRUE3QLQJJNA5CNFSM4I2G6ZYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7T7RZA#issuecomment-535296228>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA6Y4NLLMU3CLVAXF7LCKTQLQJJNANCNFSM4I2G6ZYA>
.
|
No, it's happening using chrome surfing internet, my server side commands is:
and there's no command on client side(Chrome). |
Can you verify the same first using curl? Pretty sure it should work.
Then also do check for trailing whitespaces around your my_username and
port in Chrome setting.
…------------------------------------------------------
Abhinav Singh,
https://abhinavsingh.com
------------------------------------------------------
On Wed, Sep 25, 2019 at 7:03 PM cypress-zh ***@***.***> wrote:
No, it's happening using chrome surfing internet, my server side commands
is:
proxy.py --basic-auth my_username:123456 --hostname 0.0.0.0
and there's no command on client side(Chrome).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#89?email_source=notifications&email_token=AAA6Y4PSPJ4DUXVWJYWTL4TQLQJ6ZA5CNFSM4I2G6ZYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7T73NI#issuecomment-535297461>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA6Y4LSHNZENOIA5KC4MXTQLQJ6ZANCNFSM4I2G6ZYA>
.
|
I tried |
Issue is due to check for auth header length is not equal to 2 in /proxy/proxy.py/proxy/http/proxy/auth.py , chrome browser might have extra headers ,Please change the code in /proxy/proxy.py/proxy/http/proxy/auth.py as a fix,. After removal of this check, browser auth worked |
@vikranth094 Thank you. Can you also share what exactly does browser end up sending? We can use the same as a test scenario too. You can anonymize any hashes etc. I am curious what exactly is being sent by browser. |
I am not sure about browser, I was working with my android proxy client which had request format |
Thank you for this piece of information. We'll address it and add necessary tests using your provided example. I'll try to also repro on an android device. Best. |
Thanks Bro, Really cool project |
I started a proxy with command:
proxy.py --basic-auth username:password
I configured chrome proxy as below(Mac OSX):
type:
Web Proxy(Http)
Host:
my_host_server
Port:
8899(I use the default port)
Chekced
Proxy Server Requires Password
and fill inUsername:
username
Passowrd:
password
the snapshot as below:

I'm sure the firewall was disabled.
but still can NOT get traffic proxyed, the log of proxy server didnot show anything, just a
Starting
:am I missed something? can somebody help me out of configuration? Thanks in advance:)
The text was updated successfully, but these errors were encountered: