Skip to content

Commit a57e09e

Browse files
committed
Enable signing and encryption for client session and cookie
1 parent c6782fd commit a57e09e

1 file changed

Lines changed: 27 additions & 4 deletions

File tree

etc/cas/config/cas.properties

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ cas.server.tomcat.http.protocol=org.apache.coyote.http11.Http11NioProtocol
1717
cas.server.tomcat.http.enabled=true
1818
cas.server.tomcat.http.attributes.attribute-name=attributeValue
1919

20+
21+
2022
########################################################################################################################
2123
# JSON Service Registry
2224
# See: https://apereo.github.io/cas/6.2.x/services/JSON-Service-Management.html
@@ -112,11 +114,31 @@ cas.ticket.registry.jpa.jpa-locking-timeout=PT1H
112114

113115

114116

117+
########################################################################################################################
118+
# Signing and Encryption
119+
# See: https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties-Common.html#signing--encryption
120+
########################################################################################################################
121+
# Spring Client Session
122+
# See: https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties.html#spring-webflow-client-side-session
123+
#
124+
cas.webflow.crypto.signing.key=changeme
125+
cas.webflow.crypto.encryption.key=changeme
126+
#
127+
# Ticket Granting Cookie (TGC)
128+
# See: https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties.html#signing--encryption-4
129+
#
130+
cas.tgc.crypto.signing.key=changeme
131+
cas.tgc.crypto.encryption.key=changeme
132+
#
133+
########################################################################################################################
134+
135+
136+
115137
########################################################################################################################
116138
# Long-term Authentication: Ticket Granting Cookie (TGC) and Ticket Granting Ticket (TGT)
117139
# See https://apereo.github.io/cas/6.2.x/installation/Configuring-LongTerm-Authentication.html
118140
########################################################################################################################
119-
# General Cookie Setting for TGC
141+
# General Cookie Setting for Ticket Granting Cookie
120142
#
121143
cas.tgc.name=osf-cas
122144
cas.tgc.domain=192.168.168.167
@@ -127,16 +149,17 @@ cas.tgc.secure=false
127149
cas.tgc.http-only=true
128150
cas.tgc.same-site-policy=Lax
129151
cas.tgc.pin-to-session=true
130-
131-
# Ticket Granting Cookie Setting
152+
#
153+
# Ticket Granting Cookie Specific Settings
132154
#
133155
cas.tgc.remember-me-max-age=P14D
134156
cas.tgc.auto-configure-cookie-path=true
135-
157+
#
136158
# Ticket Granting Ticket Persistence Settings
137159
#
138160
cas.ticket.tgt.remember-me.enabled=true
139161
cas.ticket.tgt.remember-me.time-to-kill-in-seconds=7200
162+
#
140163
########################################################################################################################
141164

142165

0 commit comments

Comments
 (0)