User cbb759276f
11-11-2016 20:10:54
Hi
I've been trying to set up basic security on Webservices. I have added the following lines to tomcat.conf
JAVA_OPTS="-Djava.awt.headless=true"
JAVA_OPTS="-Dspring.profiles.active=security-source-external,security-http-basic"
JAVA_OPTS="-Dsecurity.source.location=file:home/tomcat/.chemaxon/spring-security-source.xml"
JAVA_OPTS="-Xmx2500m"
I have also copied the spring-security-source.xml to /home/tomcat/.chemaxon (attached)
However, when I check rest-v0 output, I can't see any evidence of security being activated.
{"welcomeMessage":"You connected to the JChem REST Web Services","availableServices":["JChem Simple Web Services"],"authInfo":{"isAuthenticated":false},"version":"16.10.17.0",
"jchemVersion":"16.10.17.0-master-5866","javaVersion":"Oracle Corporation 1.8.0_65","osVersion":"Linux 3.10.0-327.el7.x86_64 amd64","servletVersion":"Apache Tomcat/7.0.54, servlet 3.0",
"jvmInfo":{"uptime":"39s","maxMemory":"2.17GB","allocatedMemory":"912.5MB","freeMemory":"686.96MB","availableProcessors":4},"cxnHomePath":"/home/tomcat/.chemaxon"
Could you please advise?