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

Pablo Vidaurri psvidaurri at gmail.com
Sat Nov 23 00:37:26 EST 2019


I'm pulling email attributes from an ldap connector and have the
attributeDefinition as follows:
<AttributeDefinition id="myMail" xsi:type="Simple">
        <InputDataConnector ref="myLDAP" attributeNames="email"/>
        <AttributeEncoder xsi:type="SAML1String"
name="urn:mace:dir:attribute-def:mail" encodeType="false" />
        <AttributeEncoder xsi:type="SAML2String"
name="urn:oid:0.9.2342.19200300.100.1.3" friendlyName="myMail"
encodeType="false" />
    </AttributeDefinition>

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>
.
.
.
I'm getting a null pointer exception from paramEscaper.
I've also tried:
$myMail.getValues().get(0)
$myMail.get(0)
$myMail.getValue()
all options I've ran into from the docs.

Anyone able to get something like this to work?

Thanks.
-psv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20191122/67a07b1b/attachment.html>


More information about the users mailing list