duosecurity / duo_universal_java

Duo OIDC-based two-factor authentication for Java web applications
https://duo.com/docs/duoweb
Other
14 stars 19 forks source link

Http Proxy support? #12

Open bemar76 opened 3 years ago

bemar76 commented 3 years ago

Hello,

how can I get support for http proxy? I did not find another way than having code changes in the sdk modul to get OkHttp to use proxy.

Thank you

Benjamin

AaronAtDuo commented 3 years ago

@bemar76 We definitely have plans to add proxy support to this, as well as the other languages' Duo Universal clients. Unfortunately, that's not quite at the top of our priority list at the moment, so I can't give you a good estimate on when that might happen.

bemar76 commented 3 years ago

@AaronAtDuo I've implemented it already because we have a proxy infrastructure in our company. If your are interested for the code, let me know.

AaronAtDuo commented 3 years ago

@bemar76 We'd definitely be interested! If you've got a fork with the change, or want to put together a PR, etc. we'd definitely take a look.

bemar76 commented 2 years ago

Hallo Aaron,

you can find my approach here

https://github.com/bemar76/duo_universal_java/

Sorry for choosing wrong character set.

AaronAtDuo commented 2 years ago

I'll take a look! We'll see when we can get proxy support prioritized. It'll probably be after we add a couple more languages though.

Thanks for the note.

LMCO-Richard commented 2 years ago

@AaronAtDuo @bemar76 I don't see a pull request was made. @bemar76 code with proxy added works for me. Can we make a pull request and get this added?

LMCO-Richard commented 2 years ago

@AaronAtDuo Also, could you please upgrade the com.auth0.java-jwt dependency to the latest version as one of its transitive dependencies Apache Commons Codec introduces breakage with new versions of Apache Commons Codec. In the latest version of com.auth0.java-jwt, the transitive dependency Apache Commons Codec has been removed.

AaronAtDuo commented 2 years ago

@LMCO-Richard I'll see what I can do. It looks like in the latest version (4.0.0) they changed the signature of something we use, so it's not a simple pom-only update...

AaronAtDuo commented 2 years ago

Ok https://github.com/duosecurity/duo_universal_java/pull/19 is in for the dependency update, fingers crossed that it passes CI.

AaronAtDuo commented 2 years ago

@LMCO-Richard Commit https://github.com/duosecurity/duo_universal_java/commit/0febdbfbb55ffc1dc3da9490b49f6039a6eb688a updates the JWT library dependency.

HTTP proxy support might take a bit longer - do you want to wait for that, or should I do a release with just the dependency change?

LMCO-Richard commented 2 years ago

@AaronAtDuo Thank you for addressing the dependency issue. Yes, I'd like to wait for the HTTP proxy support. I believe it should be pretty straightforward as @bemar76 already has all the required code changes in his repo. Thanks again!

bemar76 commented 1 year ago

You're welcome. Proud do have some of my code inside this amazing project.

eosmith commented 11 months ago

@AaronAtDuo I've incorporated the http proxy server support from the excellent fork by @bemar76 into my own fork from the the most recent version of this project and submitted a pull request. Our team at Carnegie Mellon would greatly appreciate it if Duo would approve this request so we don't have to maintain a separate project from yours that offers proxy server support. It appears from the comments that others would benefit as well. Thank you for your consideration.

AaronAtDuo commented 11 months ago

@eosmith I definitely plan to look this over and try to get it merged next week.

litesam commented 5 months ago

Hey Aaron, I am also facing this issue when can we expect the proxy support.

In the meantime do you have any alternative way to configure the proxy to the Duo client?