Skip to content

Instantly share code, notes, and snippets.

@HitScan
Last active August 16, 2023 19:25
Show Gist options
  • Save HitScan/71f043e043e04a8eb58f48b29c4b8528 to your computer and use it in GitHub Desktop.
Save HitScan/71f043e043e04a8eb58f48b29c4b8528 to your computer and use it in GitHub Desktop.
Modifying shibboleth to use a memcached session backend
<SPConfig xmlns="urn:mace:shibboleth:3.0:native:sp:config"
xmlns:conf="urn:mace:shibboleth:3.0:native:sp:config"
clockSkew="180">
<OutOfProcess tranLogFormat="%u|%s|%IDP|%i|%ac|%t|%attr|%n|%b|%E|%S|%SS|%L|%UA|%a">
<Extensions>
<Library path="memcache-store.so" fatal="true"/>
</Extensions>
</OutOfProcess>
<StorageService type="MEMCACHE" id="mc" prefix="shib:">
<Hosts>
HOST:11211
</Hosts>
</StorageService>
<StorageService type="MEMCACHE" id="mc-ctx" prefix="shib:" buildMap="1">
<Hosts>
HOST:11211
</Hosts>
</StorageService>
<SessionCache type="StorageService" StorageService="mc-ctx" cacheAssertions="false"
cacheAllowance="3600" inprocTimeout="900" cleanupInterval="900"/>
<ReplayCache StorageService="mc"/>
<ArtifactMap StorageService="mc" artifactTTL="180"/>
<!-- The rest of the usual shibboleth2.xml continues here -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment