-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcas.properties
230 lines (202 loc) · 10.1 KB
/
cas.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
########################################################################################################################
# Server Settings
########################################################################################################################
# Server
#
server.port=${TOMCAT_HTTP_PORT:80}
# Servlet
server.servlet.contextPath=/
#
# SSL
server.ssl.enabled=false
#
# CAS Server
cas.server.name=https://{{ .Values.casDomain }}
cas.server.prefix=${cas.server.name}
# cas.server.scope={{ .Values.casDomain }}
#
# Tomcat Server
#
cas.server.tomcat.server-name=OSF CAS
# Enable additional HTTP connections for the embedded Tomcat container (when SSL is enabled by default)
# cas.server.tomcat.http.port=${TOMCAT_HTTP_PORT:80}
# cas.server.tomcat.http.protocol=org.apache.coyote.http11.Http11NioProtocol
# cas.server.tomcat.http.enabled=true
# cas.server.tomcat.http.attributes=
# e.g. cas.server.tomcat.http.attributes.{attribute-name}={attributeValue}
########################################################################################################################
########################################################################################################################
# Logging Settings
########################################################################################################################
logging.config=file:/etc/cas/config/log4j2.xml
########################################################################################################################
########################################################################################################################
# Accept Users Authentication - Demo purpose only, must set to empty on production
########################################################################################################################
cas.authn.accept.users=
########################################################################################################################
########################################################################################################################
# JSON Service Registry
# See: https://apereo.github.io/cas/6.2.x/services/JSON-Service-Management.html
########################################################################################################################
cas.serviceRegistry.json.location=file:/etc/cas/services
########################################################################################################################
########################################################################################################################
# CAS Logout and Single Logout (SLO)
# https://apereo.github.io/cas/6.2.x/installation/Logout-Single-Signout.html
########################################################################################################################
# CAS Logout
#
cas.logout.follow-service-redirects=true
cas.logout.redirect-parameter=service
cas.logout.confirm-logout=false
cas.logout.remove-descendant-tickets=false
########################################################################################################################
########################################################################################################################
# OSF PostgreSQL Authentication
# See: https://apereo.github.io/cas/6.2.x/installation/Configuring-Custom-Authentication.html
########################################################################################################################
# Authentication settings
#
cas.authn.osf-postgres.enabled=true
cas.authn.osf-postgres.order=0
# JPA settings for OSF PostgreSQL
#
cas.authn.osf-postgres.jpa.user=${OSF_DB_USER:postgres}
cas.authn.osf-postgres.jpa.password=${OSF_DB_PASSWORD:}
cas.authn.osf-postgres.jpa.driver-class=${OSF_DB_DRIVER_CLASS:org.postgresql.Driver}
cas.authn.osf-postgres.jpa.url=${OSF_DB_URL:jdbc:postgresql://192.168.168.167:5432/osf?targetServerType=master&readOnly=true}
cas.authn.osf-postgres.jpa.dialect=${OSF_DB_HIBERNATE_DIALECT:io.cos.cas.osf.hibernate.dialect.OsfPostgresDialect}
########################################################################################################################
########################################################################################################################
# JPA Ticket Registry
# See: https://apereo.github.io/cas/6.2.x/ticketing/JPA-Ticket-Registry.html
########################################################################################################################
# Global JDBC Settings
#
cas.jdbc.show-sql=false
cas.jdbc.gen-ddl=true
cas.jdbc.case-insensitive=false
# cas.jdbc.physical-table-names=
# e.g. cas.jdbc.physical-table-names.{table-name}={new-table-name}
#
# General JPA Settings
#
cas.ticket.registry.jpa.user=${CAS_DB_USER:postgres}
cas.ticket.registry.jpa.password=${CAS_DB_PASSWORD:}
cas.ticket.registry.jpa.driver-class=${CAS_DB_DRIVER_CLASS:org.postgresql.Driver}
cas.ticket.registry.jpa.url=${CAS_DB_URL:jdbc:postgresql://127.0.0.1:5432/cas?targetServerType=master}
cas.ticket.registry.jpa.dialect=${CAS_DB_HIBERNATE_DIALECT:org.hibernate.dialect.PostgreSQL95Dialect}
cas.ticket.registry.jpa.ddl-auto=update
cas.ticket.registry.jpa.default-catalog=
cas.ticket.registry.jpa.default-schema=
cas.ticket.registry.jpa.health-query=
cas.ticket.registry.jpa.idle-timeout=PT10M
cas.ticket.registry.jpa.leak-threshold=6000
cas.ticket.registry.jpa.batchSize=5
cas.ticket.registry.jpa.fail-fast-timeout=1
cas.ticket.registry.jpa.autocommit=false
cas.ticket.registry.jpa.isolate-internal-queries=false
cas.ticket.registry.jpa.isolation-level-name=ISOLATION_READ_COMMITTED
cas.ticket.registry.jpa.data-source-name=
cas.ticket.registry.jpa.data-source-proxy=false
cas.ticket.registry.jpa.physical-naming-strategy-class-name=org.apereo.cas.hibernate.CasHibernatePhysicalNamingStrategy
cas.ticket.registry.jpa.propagation-behaviorName=PROPAGATION_REQUIRED
#
# JPA Connection Pooling Properties
# e.g. cas.ticket.registry.jpa.properties.property-name=propertyValue
#
cas.ticket.registry.jpa.pool.min-size=6
cas.ticket.registry.jpa.pool.max-size=18
cas.ticket.registry.jpa.pool.max-wait=PT2S
cas.ticket.registry.jpa.pool.suspension=false
cas.ticket.registry.jpa.pool.timeout-millis=1000
#
# JPA Ticket Registry Settings
#
cas.ticket.registry.jpa.ticket-lock-type=NONE
cas.ticket.registry.jpa.jpa-locking-timeout=PT1H
########################################################################################################################
########################################################################################################################
# Signing and Encryption
# See: https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties-Common.html#signing--encryption
########################################################################################################################
# Spring Client Session
# See: https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties.html#spring-webflow-client-side-session
#
cas.webflow.crypto.signing.key=${WEB_FLOW_SIGNING_KEY}
cas.webflow.crypto.encryption.key=${WEB_FLOW_ENCRYPTION_KEY}
#
# Ticket Granting Cookie (TGC)
# See: https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties.html#signing--encryption-4
#
cas.tgc.crypto.signing.key=${TGC_SIGNING_KEY}
cas.tgc.crypto.encryption.key=${TGC_ENCRYPTION_KEY}
#
########################################################################################################################
########################################################################################################################
# Long-term Authentication: Ticket Granting Cookie (TGC) and Ticket Granting Ticket (TGT)
# See https://apereo.github.io/cas/6.2.x/installation/Configuring-LongTerm-Authentication.html
########################################################################################################################
# General Cookie Setting for Ticket Granting Cookie
#
cas.tgc.name=osf-cas
cas.tgc.domain={{ .Values.casDomain }}
cas.tgc.path=/
cas.tgc.comment=OSF CAS Ticket Granting Cookie
cas.tgc.maxAge=-1
cas.tgc.secure=true
cas.tgc.http-only=true
cas.tgc.same-site-policy=Lax
cas.tgc.pin-to-session=true
#
# Ticket Granting Cookie Specific Settings
#
cas.tgc.remember-me-max-age=P28D
cas.tgc.auto-configure-cookie-path=true
#
# Ticket Granting Ticket Persistence Settings
#
cas.ticket.tgt.remember-me.enabled=true
cas.ticket.tgt.remember-me.time-to-kill-in-seconds=7200
#
########################################################################################################################
########################################################################################################################
# Pac4j Delegated Authentication
# https://apereo.github.io/cas/6.2.x/integration/Delegate-Authentication.html
########################################################################################################################
# General settings
#
cas.authn.pac4j.typed-id-used=true
cas.authn.pac4j.lazy-init=true
cas.authn.pac4j.replicate-sessions=false
#
# Non-institution clients
cas.authn.osf-postgres.non-institution-clients[0]=${cas.authn.pac4j.orcid.client-name}
#
# Institution clients
#
cas.authn.osf-postgres.institution-clients[0]=${cas.authn.pac4j.cas[0].client-name}
cas.authn.osf-postgres.institution-clients[1]=${cas.authn.pac4j.cas[1].client-name}
#
# Delegation Client: ORCiD
#
cas.authn.pac4j.orcid.id=${OAUTH_ORCID_CLIENT_ID:}
cas.authn.pac4j.orcid.secret=${OAUTH_ORCID_CLIENT_SECRET:}
cas.authn.pac4j.orcid.client-name=orcid
cas.authn.pac4j.orcid.enabled=true
cas.authn.pac4j.orcid.callback-url-type=QUERY_PARAMETER
#
# Delegation Client: CAS
#
cas.authn.pac4j.cas[0].login-url=https://accounts.staging.osf.io/login
cas.authn.pac4j.cas[0].client-name=stage1cas
cas.authn.pac4j.cas[0].protocol=SAML
cas.authn.pac4j.cas[0].callback-url-type=QUERY_PARAMETER
#
cas.authn.pac4j.cas[1].login-url=https://accounts.staging2.osf.io/login
cas.authn.pac4j.cas[1].client-name=stage2cas
cas.authn.pac4j.cas[1].protocol=CAS30
cas.authn.pac4j.cas[1].callback-url-type=QUERY_PARAMETER
#
########################################################################################################################