summaryrefslogtreecommitdiffstats
path: root/base/tks
diff options
context:
space:
mode:
Diffstat (limited to 'base/tks')
-rw-r--r--base/tks/shared/webapps/tks/WEB-INF/auth.properties8
-rw-r--r--base/tks/shared/webapps/tks/WEB-INF/web.xml4
2 files changed, 10 insertions, 2 deletions
diff --git a/base/tks/shared/webapps/tks/WEB-INF/auth.properties b/base/tks/shared/webapps/tks/WEB-INF/auth.properties
new file mode 100644
index 000000000..29dc9f3fc
--- /dev/null
+++ b/base/tks/shared/webapps/tks/WEB-INF/auth.properties
@@ -0,0 +1,8 @@
+# Restful API auth/authz mapping info
+#
+# Format:
+# <Rest API URL> = <ACL Resource ID>,<ACL resource operation>
+# ex: /kra/pki/key/retrieve = certServer.kra.pki.key.retrieve,execute
+
+/tks/rest/admin/users = certServer.tks.users,execute
+/tks/rest/admin/groups = certServer.tks.groups,execute
diff --git a/base/tks/shared/webapps/tks/WEB-INF/web.xml b/base/tks/shared/webapps/tks/WEB-INF/web.xml
index 20874de45..80bb24bc1 100644
--- a/base/tks/shared/webapps/tks/WEB-INF/web.xml
+++ b/base/tks/shared/webapps/tks/WEB-INF/web.xml
@@ -279,7 +279,7 @@
<context-param>
<param-name>resteasy.servlet.mapping.prefix</param-name>
- <param-value>/pki</param-value>
+ <param-value>/rest</param-value>
</context-param>
<context-param>
@@ -300,7 +300,7 @@
<servlet-mapping>
<servlet-name>Resteasy</servlet-name>
- <url-pattern>/pki/*</url-pattern>
+ <url-pattern>/rest/*</url-pattern>
</servlet-mapping>
<servlet-mapping>