ERAgentRestAPICASSecurity.xml Configuration File
In 3DSpace connectivity mode, the ERAgent uses the
ERAgentRestAPICASSecurity.xml file to configure the CAS
security.
To find this file on your host machine, you can query the ping endpoint of
the ERAgent. For example, https://<host>/3DSpace/er-agent/ping.
This query displays an error message, which gives the location of the
ERAgentRestAPICASSecurity.xml file on your host machine.
The ERAgentRestAPICASSecurity.xml file has the following structure. In the
following example, <denies> has the priority over
<grants>.
<casSecurityConfig>
<grants>
<all>true</all>
<users/>
<assignments/>
</grants>
<denies>
<all>true</all>
<users/>
<assignments/>
</denies>
</casSecurityConfig>
Configuration samples:
<!-- Config sample: Grant only one user.
In this CAS, only the user with the LOGIN login can crawl the 3DSpace using CAS authentication-->
<!--<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<casSecurityConfig>
<grants>
<all>false</all>
<users>
<login>LOGIN</login>
</users>
<assignments/>
</grants>
</casSecurityConfig>
-->
<!-- Config sample: Grants the users who have the specified assignments.
All users belonging to at least one of these assignments can crawl the 3DSpace using CAS-->
<!--<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<casSecurityConfig>
<grants>
<all>false</all>
<users/>
<assignments>
<name>ctx::VPLMProjectLeader.MyCompany.3DS Protected Collab Space</name>
<name>VPLMProjectLeader</name>
</assignments>
</grants>
</casSecurityConfig>
-->
Note:
If you change the
ERAgentRestAPICASSecurity.xml file manually, you
do not have to restart the 3DSpace Tomcat.