diff options
Diffstat (limited to 'base')
4 files changed, 20 insertions, 4 deletions
diff --git a/base/ocsp/shared/webapps/ocsp/WEB-INF/auth.properties b/base/ocsp/shared/webapps/ocsp/WEB-INF/auth.properties new file mode 100644 index 000000000..3a85e209f --- /dev/null +++ b/base/ocsp/shared/webapps/ocsp/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 + +/ocsp/rest/admin/users = certServer.ocsp.users,execute +/ocsp/rest/admin/groups = certServer.ocsp.groups,execute diff --git a/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml b/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml index cb18574b3..b1e625975 100644 --- a/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml +++ b/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml @@ -410,7 +410,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> @@ -431,7 +431,7 @@ <servlet-mapping> <servlet-name>Resteasy</servlet-name> - <url-pattern>/pki/*</url-pattern> + <url-pattern>/rest/*</url-pattern> </servlet-mapping> <servlet-mapping> 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> |