tanveery / recaptcha-net

reCAPTCHA for .NET library lets you easily use Google's reCAPTCHA in an ASP.NET Web Forms / MVC / ASP.NET Core application.
Apache License 2.0
163 stars 69 forks source link

Recaptcha & proxy configuration #35

Open kows opened 7 years ago

kows commented 7 years ago

With some extended testing on our different environments I came to the following conclusion regarding the usage of a proxy and this library. It seems to me, by using WebRequest.GetSystemWebProxy() in VerifyRecaptchaResponse of RecaptchaVerificationHelper, the proxy that is used is always the proxy defined in settings of IE for current user (in our case NetworkService, defined on application pool). Overriding this proxy with web.config fails because the result of method above always overrides the default proxy. Currently I'm keeping my proxy on the NetworkService account but it would be more usefull if this is adaptable by config.

weedkiller commented 7 years ago

I have a similar issue where I want to give the clients during login acheck box Proxy true, if they're behind a proxy

woodpd commented 6 years ago

I agree with kows, we really need to be able to define the proxy from config rather than just using GetSystemWebProxy() which can really cause deployment issues if you don't have the ability to set that. Everything should be configurable with the app and its a reasonably simple feature to add

UweKeim commented 1 year ago

We urgently need this, too. Any chance to ever implement setting an IWebProxy from outside?