Question about CacheKeyTemplate

Krinetzki, Stephan Krinetzki at itc.rwth-aachen.de
Wed Aug 13 13:30:11 UTC 2025


Hello everyone,

I'm having a little problem with the CachKeyTemplate: As far as I can see in the documentation [0], you can freely define the template for the key. However, the documentation only mentions a simple variable. I would now like to work with a prefix and have tried something like this:

<CacheKeyTemplate>
    <![CDATA[
        http_cache:$employeeNumber.get(0)
    ]]>
</CacheKeyTemplate>

However, this has now led to an error: Apparently, all users have now received the same cached entry. Have I done something wrong or misunderstood something? This is an HTTPConnector that communicates with a SOAP web service and is supposed to cache its results. I have the latest IdP 5.1.4 with OpenJDK 17.

Regards

Stephan

[0] https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199503751/CacheKeyTemplate

--
Stephan Krinetzki
 
IT Center
Gruppe: Anwendungsbetrieb und Cloud
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23 
52074 Aachen
Tel: +49 241 80-24866
Fax: +49 241 80-22134
krinetzki at itc.rwth-aachen.de
www.itc.rwth-aachen.de

Social Media Kanäle des IT Centers:
https://blog.rwth-aachen.de/itc/ 
https://www.facebook.com/itcenterrwth 
https://www.linkedin.com/company/itcenterrwth
https://twitter.com/ITCenterRWTH
https://www.youtube.com/channel/UCKKDJJukeRwO0LP-ac8x8rQ​

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7338 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20250813/09271b6b/attachment.p7s>


More information about the users mailing list