Skip to content
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

Proxy keeps asking for authentication all the time #824

Closed
Antonn1 opened this issue Nov 8, 2015 · 11 comments
Closed

Proxy keeps asking for authentication all the time #824

Antonn1 opened this issue Nov 8, 2015 · 11 comments

Comments

@Antonn1
Copy link

Antonn1 commented Nov 8, 2015

Hello,

I successfully setup mitmproxy and it's dependencies and when I run the proxy with a password, it just keeps asking for the password. Even though the password entered is correct.

This only started happening after I reinstalled the server and installed mitmproxy again.

Am I missing something?

@mhils
Copy link
Member

mhils commented Nov 10, 2015

I'm not quite sure what your issue is based on what you are writing. Could you please describe your issue using the template at https://github.com/mitmproxy/mitmproxy/blob/master/CONTRIBUTING.md?

@Antonn1
Copy link
Author

Antonn1 commented Nov 11, 2015

Hello,

Apologies.

Basically, what I'm trying to say is that the device which connects to the proxy is always prompted for authentication details even if the authentication provided is correct.

On a previous installation (~2 months ago) it worked fine on Ubuntu 14.10. Now after formatting the server to 14.10 again and reinstalling mitmproxy and it's dependencies, it installs like before but when I start the proxy and connect my device to it, it just keeps asking for authentication details no matter what I insert in the user & pass box.

If I run the proxy without authentication it works as it should but with authentication, it's giving me issues. So I was thinking maybe I'm missing something?

@mhils
Copy link
Member

mhils commented Nov 11, 2015

Thanksfor the clarification.

  1. How do you start mitmproxy (which parameters?)?
  2. Which client do you use? How did you configure it to use the proxy?

@Antonn1
Copy link
Author

Antonn1 commented Nov 11, 2015

I use screen to keep it running in the background so:

screen mitmproxy --singleuser user:password -s file.py

I haven't done any configurations. Just installed and started the proxy. :)

@mhils
Copy link
Member

mhils commented Nov 11, 2015

Which client do you use? Firefox? Chrome? Your-Random-App?
If it's a browser: Does this happen for all websites or only for HTTP, only for HTTPS, ...?

@Antonn1
Copy link
Author

Antonn1 commented Nov 11, 2015

I use an iOS & Android device. And it happens for all websites apparently.

@Antonn1
Copy link
Author

Antonn1 commented Nov 14, 2015

Any ideas?

On a previous fresh install, it never used to ask for the authentication password all the time. I will format the server and retry again.

@Antonn1
Copy link
Author

Antonn1 commented Nov 14, 2015

Nothing yet.

Can I install an older version of mitmproxy? Maybe an updated version is causing the issue for me. Because on the old server, I never updated packages.

mhils added a commit that referenced this issue Nov 14, 2015
@mhils
Copy link
Member

mhils commented Nov 14, 2015

I just commited a fix that affected HTTPS connections only. You can install mitmproxy from master using

pip install git+https://github.com/mitmproxy/netlib.git@master
pip install git+https://github.com/mitmproxy/mitmproxy.git@master

You mentioned HTTP connections are affected as well - does this fix your issue though?

@Antonn1
Copy link
Author

Antonn1 commented Nov 17, 2015

I'm not sure how to install it that way. Got an error.

Sorry.

@mhils
Copy link
Member

mhils commented Nov 17, 2015

Sorry about that. I think we have plenty of installation instructions out there.

@mhils mhils closed this as completed Nov 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants