cas.server.name=https://localhost:8443
cas.server.prefix=${cas.server.name}/cas
logging.config=file:/etc/cas/config/log4j2.xml
cas.serviceRegistry.initFromJson=false
cas.serviceRegistry.json.location=file:/etc/cas/services
4. I've created a file in src/main/resources/etc/cas/services/
Name: testId-1.json containing:
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "http://localhost/.*",
"name" : "testId",
"id" : 1,
"accessStrategy" : {
"@class" :
"org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",
"enabled" : true,
"ssoEnabled" : true
}
}
5. I'm running : gradlew.bat build run
CAS launch correctly but JSON service is not loaded, I'm still getting this in logs:
2019-01-31 18:53:15,046 WARN [org.apereo.cas.config.CasCoreServicesConfiguration] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes that are made to service definitions during runtime WILL be LOST when t
he CAS server is restarted. Ideally for production, you should choose a storage option (JSON, JDBC, MongoDb, etc) to track service definitions.>
2019-01-31 18:53:15,055 INFO [org.apereo.cas.services.AbstractServicesManager] - <Loaded [0] service(s) from [InMemoryServiceRegistry].>
I've passed some hours to try to figure it out, I'd tried a lot of things describe in various similar pb threads:
https://groups.google.com/a/apereo.org/forum/#!topic/cas-user/jJ8OOyoQoBw
https://groups.google.com/forum/#!topic/jasig-cas-user/R0H3nlynQ1k
I've added a bootstrap.properties in /src/main/resources with defaut file and changed:
spring.cloud.config.server.native.searchLocations=file:/etc/cas/config
But nothing changed.
I also tried to launch with : gradlew.bat build bootRun but it fails with an too long filename error (it seems to be windows related)
Can someone help me ? I have no more ideas at this stage :)
thanks