FileBackedHTTPResource - Spring
Joshua Brodie
josbrodie at gmail.com
Tue Jun 16 19:13:49 UTC 2020
For an ActivationCondition --
https://wiki.shibboleth.net/confluence/display/IDP4/ActivationConditions --
I've place file 'activation-conditions.xml' on a remote server that fronts
our git (same locations as the 'attribute-resolver.xml' etc).
My level of Spring comprehension is low -- how do I invoke 'fileResource1'
and 'fileResource2' to load the files? Is the configuration below somewhat
sane?
Configuration in 'services.xml':
<bean id="fileResource1"
class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource"
c:client-ref="shibboleth.FileCachingHttpClient"
c:url="https://remote-url.com/attribute-resolver.xml"
c:backingFile="%{idp.home}/conf/attribute-resolver.xml">
</bean>
<bean id="fileResource2"
class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource"
c:client-ref="shibboleth.FileCachingHttpClient"
c:url="https://remote-url.com/activation-conditions.xml"
c:backingFile="%{idp.home}/conf/activation-conditions.xml"/>
<util:list id ="shibboleth.AttributeResolverResources">
<value>%{idp.home}/conf/attribute-resolver.xml</value>
<value>%{idp.home}/conf/activation-conditions.xml</value>
</util:list>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20200616/b7f42c05/attachment.htm>
More information about the users
mailing list