On Tuesday, June 13, 2017 at 2:13:00 PM UTC+1, Paul D wrote: > > Trying to setup a testing CAS server using docker > (apereo/cas:v4.2.2)....<snip> >
I switched to v5.0.6 and the json attribute storage is working now. Just to assist anyone else who needs a similar setup for testing, my docker container is simply apereo/cas:v5.0.6 plus these additional files added via the Dockerfile */cas-overlay/etc/cas/config/cas.properties* (this is copied to /etc/cas/config at startup, and contains the location of the attribute repository) cas.server.name: https://cas.example.org:8443 cas.server.prefix: https://cas.example.org:8443/cas cas.adminPagesSecurity.ip=172\.17\.8\.1 cas.authn.attributeRepository.json.config.location=file: //etc/cas/attribute-repository.json logging.config: file:/etc/cas/config/log4j2.xml */etc/cas/attribute-repository.json *(here's the attributes - the installation has a casuser with password Mellon already configured) { "casuser": { "firstName":["Cassie"], "eduPersonAffiliation":["employee", "student"] } } */cas-overlay/src/main/resources/services/TestService-10000003.json *(this has a low numbered evaluation order to beat the other default service, and ensures all attributes are released) { "@class" : "org.apereo.cas.services.RegexRegisteredService", "serviceId" : "^(https|http)://.*", "name" : "HTTPS and HTTP Test", "id" : 10000003, "description" : "Test service which releases all attributes.", "proxyPolicy" : { "@class" : "org.apereo.cas.services.RefuseRegisteredServiceProxyPolicy" }, "evaluationOrder" : 1, "usernameAttributeProvider" : { "@class" : "org.apereo.cas.services.DefaultRegisteredServiceUsernameProvider" }, "logoutType" : "BACK_CHANNEL", "attributeReleasePolicy" : { "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy" }, "accessStrategy" : { "@class" : "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy", "enabled" : true, "ssoEnabled" : true } } -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/f07d61f8-6891-4c43-8869-75056a646e0d%40apereo.org.
