sjitech / proxy-login-automator

A single node.js script to automatically inject user/password to http proxy server via a local forwarder
MIT License
395 stars 93 forks source link

possible to support digest auth? #12

Open ghost opened 6 years ago

ghost commented 6 years ago

Is it possible to support digest auth and not just basic auth in a similar manner to this script? There is a negotiation that takes place involving realm and nonces so it is not as simple as basic auth.

jjqq2013 commented 6 years ago

hi, thanks for your advice. I did want do this, just have no workable PC at home recently.

BTW it is said Squid can be used the way you want. Do mot worry it also support forward http CONNECT request so support SSL.

Good luck

2017年12月13日(水) 2:55 Ezra notifications@github.com:

Is it possible to support digest auth and not just basic auth in a similar manner to this script? There is a negotiation that takes place involving realm and nonces so it is not as simple as basic auth.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sjitech/proxy-login-automator/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/AE_djCJyRkH7vLBzZaT0ceV2X-7RcYJCks5s_r3PgaJpZM4Q_YvA .

ghost commented 6 years ago

I think basic auth would work with squid, but digest would not. For digest, you have to pass the credentials in with each request rather that initialize squid with the credentials (as this project is initialized with the credentials). I haven't verified, this is just what I gather from this post: https://stackoverflow.com/questions/25609063/how-to-configure-cascade-squid-proxy-with-squid-parent-digest-authentication