CAS Management 6 non-JSON issue

66 views
Skip to first unread message

mba...@scad.edu

unread,
Aug 22, 2019, 1:27:54 PM8/22/19
to CAS Community
I've been trying to get CAS Management v6 to work with a JPA service registry, but it seems to be stuck with JSON.  After logging into the management Web app, I never see any of the services that are stored in my database.  The only services that display are ones created via the management web app and are stored in JSON at /etc/cas/services-repo/  I've tried committing too, but the new service never makes it to the database.

Now, I can see services being pulled from my database in the log file.  Here's a snippet below:
-----------
2019-08-22 13:23:55,847 DEBUG [org.apereo.cas.services.AbstractServicesManager] - <Adding registered service [^(https|imaps)://.*]>
2019-08-22 13:23:55,847 DEBUG [org.apereo.cas.services.AbstractServicesManager] - <Adding registered service [^https://www.apereo.org]>
2019-08-22 13:23:55,847 DEBUG [org.apereo.cas.services.AbstractServicesManager] - <Adding registered service [^http://localhost:8080.*]>
2019-08-22 13:23:55,848 INFO [org.apereo.cas.services.AbstractServicesManager] - <Loaded [7] service(s) from [JpaServiceRegistry].>
------------

I've added the JPA service registry to build.gradle and I do not have the JSON service registry in build.gradle.

The management.properties file looks like this:
----------------------------------
cas.server.name=https://poc-sso.scad.edu
cas.server.prefix=${cas.server.name}/cas-web

server.port=8444
server.ssl.keyStore=file:/etc/cas/newks
server.ssl.keyStorePassword=CHANGEME
server.ssl.keyPassword=CHANGEME

mgmt.serverName=https://ppoc-sso.scad.edu:8444
mgmt.adminRoles[0]=ROLE_ADMIN
mgmt.userPropertiesFile=file:/etc/cas/config/users.json

logging.config=file:/etc/cas/config/log4j2-management.xml

cas.authn.attributeRepository.stub.attributes.UDC_IDENTIFIER:   UDC_IDENTIFIER
cas.authn.attributeRepository.stub.attributes.cn:               cn
cas.authn.attributeRepository.stub.attributes.displayName:      displayName
cas.authn.attributeRepository.stub.attributes.mail:             mail
cas.authn.attributeRepository.stub.attributes.sn:               sn
cas.authn.attributeRepository.stub.attributes.uid:              uid

#cas.serviceRegistry.initFromJson=false
cas.serviceRegistry.jpa.user=${CAS_DB_USER}
cas.serviceRegistry.jpa.password=${CAS_DB_PW}
cas.serviceRegistry.jpa.driverClass=oracle.jdbc.OracleDriver
cas.serviceRegistry.jpa.url=${CAS_DB_URL}
cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.Oracle12cDialect

cas.serviceRegistry.jpa.healthQuery=select 1 from dual
cas.serviceRegistry.jpa.ddlAuto=update
cas.serviceRegistry.jpa.pool.minSize=3
cas.serviceRegistry.jpa.pool.maxSize=20
cas.serviceRegistry.jpa.pool.maxWait=2000
cas.serviceRegistry.jpa.pool.timeoutMillis=1000
----------------------------------

Any help would be appreciated.

Thanks in advance,
Mike

Dmitry Malinin

unread,
Sep 12, 2019, 8:40:12 AM9/12/19
to CAS Community
Try to build cas management from https://github.com/apereo/cas-management/releases/tag/v6.0.0-RC4 (not from overlay)
Append dependencies to build.gradle:
 compile "org.apereo.cas:cas-server-support-jpa-service-registry:${casVersion}"
 compile "org.apereo.cas:cas-server-support-jdbc-drivers:${casVersion}"
 runtime "net.bytebuddy:byte-buddy:1.10.1"

четверг, 22 августа 2019 г., 20:27:54 UTC+3 пользователь mba...@scad.edu написал:
Reply all
Reply to author
Forward
0 new messages