HttpClient/Connector configuration for resolver
Hrvoje Hodak
hrvoje.hodak at uni-tuebingen.de
Fri Feb 28 16:27:12 UTC 2025
Hi all,
I'm trying to figure out how to get attributes from a REST-API. I can't
seem to understand the documentation for that matter. I've used the
example [1] and replaced the URLTemplate with:
https://<url>:<port>/api/Attributes/GetUIDData?uid=<uid>
I understand that attributes can't be retrieved this way, since the
URL doesn't work with the script in the example, but this is not the
problem right now, since I can't even connect to the server.
I've also created a new beans as per [2], see below. But I'm getting the
following error:
```
Attribute Resolver 'ShibbolethAttributeResolver': Data connector 'HTTP'
failed
net.shibboleth.idp.attribute.resolver.ResolutionException: Data
Connector 'HTTP': HTTP request failed
at
net.shibboleth.idp.attribute.resolver.dc.http.impl.HTTPDataConnector.retrieveAttributes(HTTPDataConnector.java:123)
Caused by: java.net.SocketException: Connection reset
at
java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:328)
```
Beans:
```
<bean id="myHTTP"
parent="shibboleth.HttpClientFactory"
p:connectionProxyHost="<url>"
p:connectionProxyPort="<port>"
/>
<bean id="ExampleOrgWSSecurity"
class="org.opensaml.security.httpclient.HttpClientSecurityParameters">
<property name="tLSTrustEngine">
<bean parent="shibboleth.StaticExplicitTrustEngine"
p:certificates="%{idp.home}/credentials/cert.pem" />
</property>
</bean>
```
[1]: https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199503637/HTTPConnector
[2]: https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199510442/HttpClientConfiguration
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5951 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20250228/1e5c23ef/attachment.p7s>
More information about the users
mailing list