You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2015/12/09 19:20:04 UTC

karaf-decanter git commit: [KARAF-4171] adds authentication to elasticsearch-head

Repository: karaf-decanter
Updated Branches:
  refs/heads/master a77b7a05f -> d9e9a2691


[KARAF-4171] adds authentication to elasticsearch-head


Project: http://git-wip-us.apache.org/repos/asf/karaf-decanter/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-decanter/commit/d9e9a269
Tree: http://git-wip-us.apache.org/repos/asf/karaf-decanter/tree/d9e9a269
Diff: http://git-wip-us.apache.org/repos/asf/karaf-decanter/diff/d9e9a269

Branch: refs/heads/master
Commit: d9e9a2691e6f6de0d58578124452385d25e17200
Parents: a77b7a0
Author: acartapanis <ac...@diginext.fr>
Authored: Fri Dec 4 11:39:54 2015 +0100
Committer: acartapanis <ac...@diginext.fr>
Committed: Fri Dec 4 11:39:54 2015 +0100

----------------------------------------------------------------------
 .../src/main/resources/WEB-INF/web.xml          | 49 ++++++++++++++++++++
 1 file changed, 49 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/d9e9a269/elasticsearch-head/src/main/resources/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/elasticsearch-head/src/main/resources/WEB-INF/web.xml b/elasticsearch-head/src/main/resources/WEB-INF/web.xml
new file mode 100644
index 0000000..2c939dd
--- /dev/null
+++ b/elasticsearch-head/src/main/resources/WEB-INF/web.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You under the Apache License, Version 2.0
+        (the "License"); you may not use this file except in compliance with
+        the License.  You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+
+    <display-name>ElasticSearch Head</display-name>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+    <security-constraint>
+        <display-name>authenticated</display-name>
+        <web-resource-collection>
+            <web-resource-name>All files</web-resource-name>
+            <description />
+            <url-pattern>/*</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <description />
+            <role-name>admin</role-name>
+        </auth-constraint>
+    </security-constraint>
+    <login-config>
+        <auth-method>BASIC</auth-method>
+        <realm-name>karaf</realm-name>
+    </login-config>
+    <security-role>
+        <description />
+        <role-name>admin</role-name>
+    </security-role>
+
+</web-app>