in resolver, how to use email attribute from ldap for dataconnector URLTemplate

Pablo Vidaurri psvidaurri at gmail.com
Mon Nov 25 12:48:42 EST 2019


Perfect! Adding
<InputDataConnector ref="myLDAP" attributeNames="email"/>
to my DataConnector I was able to reference $email.get(0) in my URLTemplate.

On Mon, Nov 25, 2019 at 7:19 AM Peter Schober <peter.schober at univie.ac.at>
wrote:

> * Pablo Vidaurri <psvidaurri at gmail.com> [2019-11-23 06:38]:
> > I'm now trying to use that attribute as a query param into a URLTemplate:
> >
> > <DataConnector id="myRestWebSvc" xsi:type="HTTP"
> httpClientRef="shibboleth.NonCachingHttpClient">
> >   <URLTemplate>
> >     <![CDATA[
> >
> http://localhost:8080/rest/v3/getUserInfo?emailId=$paramEscaper.escape($myMail)
> >     ]]>
> >   </URLTemplate>
>
> Just noting that your DataConnector has neither an
>   <InputAttributeDefinition ref="myMail" />
> nor an
>   <InputDataConnector ref="myLDAP" attributeNames="email"/>
>   (in which case it would have to reference $email, not $myMail)
> dependency declared.
>
> -peter
> --
> For Consortium Member technical support, see
> https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20191125/eb8ccdd1/attachment.html>


More information about the users mailing list