Extending the SP Dynamic Metadata Provider

Brent Putman putmanb at georgetown.edu
Mon Oct 30 17:00:20 EDT 2017



On 10/27/17 11:18 AM, Cantor, Scott wrote:
>> I don’t see that in the documentation.  I'll poke at the code, or maybe Brent can chime in.  On the other hand, isn't reloading
>> from the local cache not going to do much of what you want except when you are bootstrapping a new system.
> Mostly, I imagine so. Maybe Brent did end up dumping the idea and just figured we'd handle it by querying the metadata using an API or something.
>

I didn't really dump it, nor explicitly document it.  You can
theoretically preload the dynamic providers by simply dropping XML into
the persistent cache (i.e. drop files into directory if using the
disk-based persistent cache).  On a (re)load, anything visible to the
cache manager will get loaded, just like entries that were written to
the cache after being dynamically resolved.

I suppose you would need to be careful about cache key (i.e. file)
naming, as in use the same strategy configured for the runtime provider
(e.g. lower-case hex SHA-1 hash of entityID). Otherwise, you could have
duplicates and I think the one that wins is undefined (practically it's
going to be first-wins or last-wins, can't remember off-hand).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20171030/8780777b/attachment.html>


More information about the dev mailing list