Loading URLTemplate URL from a Separate XML File

Joshua Brodie josbrodie at gmail.com
Tue Jun 23 03:12:31 UTC 2020


This is my lack of Spring/Java.

I would like to load the URL in CDATA below in a separate XML file loaded
with the 'attribute-resolver.xml'. As the URL can change -- but don't want
to have it in the 'attribute-resolver.xml' (to simplify the promotion
between environments).

If it is a properties file, I can do something like this -
<URLTemplate>%{idp.attribute.resolver.cdata.url}</URLTemplate> and in
properties file have it as 'idp.attribute.resolver.cdata.url =
https://grouper-ws.
<https://grouper-ws.service.osu.edu/gms-ws/servicesRest/v2.3.000/subjects/#if($IDMUID>
example.com'

How would I do above -- where it is an XML file where the URL is maintained?

Thank you


<DataConnector id="grouperGroups" xsi:type="HTTP"
    activationConditionRef="GrouperCondition"
    propagateResolutionExceptions="false"
    httpClientRef="grouperHttpClient"
    httpClientSecurityParametersRef="grouperHttpSecurity"
    acceptTypes="text/x-json">


    <URLTemplate>
      <![CDATA[
      https://grouper-ws.
<https://grouper-ws.service.osu.edu/gms-ws/servicesRest/v2.3.000/subjects/#if($IDMUID>
example.com
      ]]>
    </URLTemplate>

    <ResponseMapping language="rhino-nonjdk">
      <ScriptFile>%{idp.home}/conf/grouperGroups.js</ScriptFile>
    </ResponseMapping>
</DataConnector>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20200622/8456dd57/attachment.htm>


More information about the users mailing list