Skip to content

Commit

Permalink
Add SHIBBOLETH_CACHE_TIMEOUT, SHIBBOLETH_SESSION_TIMEOUT and SHIBBOLE…
Browse files Browse the repository at this point in the history
…TH_SESSION_LIFETIME env vars
  • Loading branch information
xcompass committed May 29, 2023
1 parent 93fe708 commit 0540296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ ENV SHIBD_VERSION=3.2.1-3.1
ENV SHIBD_REMOTE_USER=somerandomname
ENV SHIBD_CONSISTENT_ADDRESS=true
ENV SHIBBOLETH_IDP_METADATA_BACKUPFILE=/var/cache/shibboleth/shibboleth-metadata-idp.xml
ENV SHIBBOLETH_SESSION_LIFETIME=7200
ENV SHIBBOLETH_SESSION_TIMEOUT=3600
ENV SHIBBOLETH_CACHE_TIMEOUT=3600

WORKDIR /etc/shibboleth

Expand Down
4 changes: 2 additions & 2 deletions shibboleth2.xml-template
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ConnectionString>
</StorageService>

<SessionCache type="StorageService" StorageService="db" cacheAllowance="3600" inprocTimeout="900" cleanupInterval="900"/>
<SessionCache type="StorageService" StorageService="db" cacheAllowance="3600" cacheTimeout="${SHIBBOLETH_CACHE_TIMEOUT}" inprocTimeout="900" cleanupInterval="900"/>

<ReplayCache StorageService="db"/>

Expand All @@ -29,7 +29,7 @@
signing="true" encryption="false"
REMOTE_USER="${SHIBD_REMOTE_USER}">

<Sessions lifetime="7200" timeout="3600" relayState="ss:db"
<Sessions lifetime="${SHIBBOLETH_SESSION_LIFETIME}" timeout="${SHIBBOLETH_SESSION_TIMEOUT}" relayState="ss:db"
idpHistory="true" idpHistoryDays="7"
checkAddress="false" handlerSSL="false" cookieProps="http" consistentAddress="${SHIBD_CONSISTENT_ADDRESS}">

Expand Down

0 comments on commit 0540296

Please sign in to comment.