-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcas-local.properties
316 lines (301 loc) · 15.6 KB
/
cas-local.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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
########################################################################################################################
# Server Settings
########################################################################################################################
# General
#
server.port=8080
server.servlet.contextPath=/
server.ssl.enabled=false
#
# CAS Server
cas.server.name=http://192.168.168.167:8080
cas.server.prefix=${cas.server.name}
# cas.server.scope=localhost
#
# 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=8080
# 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}
########################################################################################################################
########################################################################################################################
# Throttling
# Configuration guide: https://apereo.github.io/cas/6.2.x/installation/Configuring-Authentication-Throttling.html
# Properties: https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties.html#authentication-throttling
########################################################################################################################
#
# Authentication Failure Throttling
#
cas.authn.throttle.username-parameter=username
cas.authn.throttle.app-code=CAS
cas.authn.throttle.failure.code=AUTHENTICATION_FAILED
cas.authn.throttle.failure.threshold=5
cas.authn.throttle.failure.range-seconds=1
########################################################################################################################
########################################################################################################################
# CAS Monitoring & Statistics Endpoints
# See: https://apereo.github.io/cas/6.2.x/monitoring/Monitoring-Statistics.html
########################################################################################################################
management.endpoints.web.exposure.include=health
management.endpoint.health.enabled=true
management.endpoint.health.show-details=WHEN_AUTHORIZED
cas.monitor.endpoints.endpoint.health.access=ANONYMOUS
########################################################################################################################
########################################################################################################################
# CAS Web Application Endpoints Security
# See: https://docs.spring.io/spring-boot/docs/2.2.8.RELEASE/reference/htmlsingle/#boot-features-security
# Currently, no sensitive endpoint is exposed. However, set them to prevent auto-generated and logged password
########################################################################################################################
# CAS Web Application Endpoints Security
spring.security.user.name=casuser
spring.security.user.password=changeme
spring.security.user.roles=USER
########################################################################################################################
########################################################################################################################
# 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 URLs
########################################################################################################################
# OSF
#
cas.authn.osf-url.home=http://localhost:5000/
cas.authn.osf-url.dashboard=http://localhost:5000/dashboard/
cas.authn.osf-url.login-with-next=http://localhost:5000/login?next=
cas.authn.osf-url.logout=http://localhost:5000/logout/
cas.authn.osf-url.resend-confirmation=http://localhost:5000/resend/
cas.authn.osf-url.forgot-password=http://localhost:5000/forgotpassword/
cas.authn.osf-url.forgot-password-institution=http://localhost:5000/forgotpassword-institution/
cas.authn.osf-url.register=http://localhost:5000/register/
cas.authn.osf-url.institutions-home=http://localhost:5000/institutions/
########################################################################################################################
########################################################################################################################
# OSF API Settings for Institution Authentication
########################################################################################################################
# Authentication Endpoint
#
cas.authn.osf-api.instn-authn-endpoint=http://192.168.168.167:8000/v2/institutions/auth/
#
# JWT / JWE secrets for signing and encrypting authentication request payload
#
cas.authn.osf-api.instn-authn-jwt-secret=osf_api_cas_login_jwt_secret_32b
cas.authn.osf-api.instn-authn-jwe-secret=osf_api_cas_login_jwe_secret_32b
#
# Path of the XSL file for parsing and transforming XML authentication responses
#
cas.authn.osf-api.instn-authn-xsl-location=file:/etc/cas/config/instn-authn.xsl
########################################################################################################################
########################################################################################################################
# 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=postgres
cas.authn.osf-postgres.jpa.password=
cas.authn.osf-postgres.jpa.driver-class=org.postgresql.Driver
cas.authn.osf-postgres.jpa.url=jdbc:postgresql://192.168.168.167:5432/osf?targetServerType=master&readOnly=true
cas.authn.osf-postgres.jpa.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=longzechen
cas.ticket.registry.jpa.password=
cas.ticket.registry.jpa.driver-class=org.postgresql.Driver
cas.ticket.registry.jpa.url=jdbc:postgresql://192.168.168.167:54321/newcas?targetServerType=master
cas.ticket.registry.jpa.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=changeme
cas.webflow.crypto.encryption.key=changeme
#
# 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=changeme
cas.tgc.crypto.encryption.key=changeme
########################################################################################################################
########################################################################################################################
# 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=192.168.168.167
cas.tgc.path=/
cas.tgc.comment=OSF CAS Ticket Granting Cookie
cas.tgc.maxAge=-1
cas.tgc.secure=false
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=changeme
cas.authn.pac4j.orcid.secret=changeme
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://bprdeis.cord.edu:8443/cas/login
cas.authn.pac4j.cas[0].client-name=cord
cas.authn.pac4j.cas[0].protocol=SAML
cas.authn.pac4j.cas[0].callback-url-type=QUERY_PARAMETER
#
cas.authn.pac4j.cas[1].login-url=http://192.168.168.167:8081/login
cas.authn.pac4j.cas[1].client-name=osftype0
cas.authn.pac4j.cas[1].protocol=CAS30
cas.authn.pac4j.cas[1].callback-url-type=QUERY_PARAMETER
########################################################################################################################
########################################################################################################################
# OAuth 2.0 Server
# Configuration guide: https://apereo.github.io/cas/6.2.x/installation/OAuth-OpenId-Authentication.html
# Properties: https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties.html#oauth2
########################################################################################################################
# Authorization Code
#
cas.authn.oauth.code.time-to-kill-in-seconds=60
cas.authn.oauth.code.number-of-uses=1
#
# Access token
#
cas.authn.oauth.access-token.time-to-kill-in-seconds=7200
cas.authn.oauth.access-token.max-time-to-live-in-seconds=28800
#
# OAuth JWT Access Tokens
# Signing and encryption are not enabled for Token / JWT Tickets.
# The keys will only attempt to produce signed (signing key) and plain (encryption key) objects.
#
cas.authn.oauth.access-token.create-as-jwt=false
cas.authn.oauth.access-token.crypto.encryption-enabled=false
cas.authn.oauth.access-token.crypto.signing-enabled=false
cas.authn.oauth.access-token.crypto.signing.key=changeme
cas.authn.oauth.access-token.crypto.encryption.key=changeme
#
# Refresh token
#
cas.authn.oauth.refresh-token.time-to-kill-in-seconds=2592000
#
# Personal access token
# Note: personal access token never expire, neither using the default properties nor setting them here is effective
#
cas.authn.oauth.personal-access-token.time-to-kill-in-seconds=31104000
cas.authn.oauth.personal-access-token.max-time-to-live-in-seconds=31104000
#
# Signing and encryption for OAuth registered service
#
cas.authn.oauth.crypto.signing.key=changeme
cas.authn.oauth.crypto.encryption.key=changeme
########################################################################################################################