extensions question
Paul Hethmon
paul.hethmon at clareitysecurity.com
Thu Mar 10 11:27:30 EST 2016
I think this is mostly a Spring question, but in writing a Service extension, I end up with something like this in service.xml (v2):
<!-- The service to load and create the OIDC configuration -->
<srv:Service id="clareity.OIDCConfigurationService" depends-on="shibboleth.RelyingPartyConfigurationManager shibboleth.SAML2AttributeAuthority"
xsi:type="oidc-cfg:OIDCConfigurationService">
<srv:ConfigurationResource file="/clareity/shibboleth-idp/conf/oidc.xml" xsi:type="resource:FilesystemResource" />
</srv:Service>
So my question is about the ConfigurationResource element of the Service. The Spring part of things mandates that my file “oidc.xml” is valid xml and has an associated xsd, handler, and parser. So all that is good.
But once I’m in my service code looking to use that information, it appears I have only access to it as an InputStream rather than an xml dom based object. I’ve tried to follow the core Shib code to see where stuff happens but trying to trace that execution flow sometimes appears hopeless to me. It feels wrong that I should have to parse my xml configuration file again since its been done once already. What am I missing?
thanks,
Paul
-----
Paul Hethmon
Chief Software Architect
paul.hethmon at clareitysecurity.com
More information about the dev
mailing list