[keycloak-user] ReCaptcha behind proxy

Plank Martin Martin.Plank at softec.sk
Thu Mar 23 04:17:54 EDT 2017


What kind of tests do you mean? Something like an integration test, which calls (mocked) ReCaptcha service through a mocked web proxy (such as [1])?
From where should the HttpConnection provider read the proxy configuration?

Martin

[1] http://www.mock-server.com/


From: Stian Thorgersen [mailto:sthorger at redhat.com]
Sent: Wednesday, March 22, 2017 7:57 PM
To: Stian Thorgersen <stian at redhat.com>
Cc: Plank Martin <Martin.Plank at softec.sk>; keycloak-user at lists.jboss.org
Subject: Re: [keycloak-user] ReCaptcha behind proxy

Problem is with testing, not sure how we can automate testing with a web proxy. We would require tests to be added with a PR as well as documentation updates.

On 22 March 2017 at 19:56, Stian Thorgersen <sthorger at redhat.com<mailto:sthorger at redhat.com>> wrote:
It should be fixed by adding a configuration option to the HttpConnection provider that allows setting the proxy settings for the underlying HttpClients. We won't accept a solution that relies on using system properties for config, nor switching to SimpleHttp (in fact that's changed to now use HttpConnection under the covers).

On 22 March 2017 at 09:25, Plank Martin <Martin.Plank at softec.sk<mailto:Martin.Plank at softec.sk>> wrote:
Hello,

It would be nice if the ReCaptcha worked behind a corporate proxy. It was already reported in [1].
The problem is that ReCaptcha validation is implemented with the use of Apache HttpClient, which does not respect the Java proxy settings by default.
It can be fixed by using the SimpleHttp utility (which uses HttpURLConnection under the hood) instead of HttpClient.
I will be happy to contribute. Would you welcome this contribution?

Thank you for your answers
Martin

[1] https://issues.jboss.org/browse/KEYCLOAK-4272
_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org<mailto:keycloak-user at lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list