HTTPConnector with proxy

Cantor, Scott cantor.2 at osu.edu
Thu May 13 12:20:26 UTC 2021


On 5/13/21, 2:20 AM, "users on behalf of Manolo Garcia Alvarez" <users-bounces at shibboleth.net on behalf of mgarciaal at uoc.edu> wrote:

>    Has anybody succeeded with this? Maybe an example of a bean definition, for an HttpClient with proxy to be
> used on the Attribute Resolver? Any help would be appretiated.

To generically address the mistakes in your XML, I will simply say that in at least V4, the syntax for creating a custom client is:

<bean id="MyClient" parent="shibboleth.HttpClientFactory">

I don't know what V3 does or doesn't have at this point and I'm not going to check to compare them, but I believe the classes and beans were roughly the same once 3.4 was released to prepare for the new version. In the V4 docs, that parent bean links to the javadoc with all of the settings.

https://build.shibboleth.net/nexus/service/local/repositories/site/content/java-identity-provider/4.1.0/apidocs/net/shibboleth/idp/profile/spring/relyingparty/metadata/HttpClientFactoryBean.html

Which has properties like connectionProxyHost

ergo:

<bean id="MyClient" parent="shibboleth.HttpClientFactory"
	p:connectionProxyHost="...">

etc.

-- Scott




More information about the users mailing list