knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmin...@apache.org
Subject [09/21] knox git commit: KNOX-699] - External meta-data for simple hosted web apps
Date Tue, 29 Mar 2016 20:14:29 GMT
http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontawesome/fontawesome-webfont.ttf
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontawesome/fontawesome-webfont.ttf
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontawesome/fontawesome-webfont.ttf
deleted file mode 100644
index d365924..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontawesome/fontawesome-webfont.ttf
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontawesome/fontawesome-webfont.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontawesome/fontawesome-webfont.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontawesome/fontawesome-webfont.woff
deleted file mode 100644
index b9bd17e..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontawesome/fontawesome-webfont.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-300.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-300.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-300.woff
deleted file mode 100644
index 99f3353..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-300.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-300i.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-300i.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-300i.woff
deleted file mode 100644
index dd0a0ea..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-300i.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-400.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-400.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-400.woff
deleted file mode 100644
index 55b25f8..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-400.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-400i.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-400i.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-400i.woff
deleted file mode 100644
index cedefb8..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-400i.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-600.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-600.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-600.woff
deleted file mode 100644
index e83bb33..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-600.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-600i.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-600i.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-600i.woff
deleted file mode 100644
index 983bb33..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-600i.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-700.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-700.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-700.woff
deleted file mode 100644
index 27619e7..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-700.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-700i.woff
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-700i.woff
b/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-700i.woff
deleted file mode 100644
index e12c3a9..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/fonts/fontopensans/open-sans-700i.woff
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/images/avatar.png
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/images/avatar.png
b/gateway-applications/src/main/resources/applications/knoxauth/images/avatar.png
deleted file mode 100644
index 74a8031..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/images/avatar.png
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/images/blank.gif
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/images/blank.gif
b/gateway-applications/src/main/resources/applications/knoxauth/images/blank.gif
deleted file mode 100644
index 35d42e8..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/images/blank.gif
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/images/knox-logo.gif
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/images/knox-logo.gif
b/gateway-applications/src/main/resources/applications/knoxauth/images/knox-logo.gif
deleted file mode 100644
index 6f476ac..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/images/knox-logo.gif
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/images/loading.gif
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/images/loading.gif
b/gateway-applications/src/main/resources/applications/knoxauth/images/loading.gif
deleted file mode 100644
index 5b33f7e..0000000
Binary files a/gateway-applications/src/main/resources/applications/knoxauth/images/loading.gif
and /dev/null differ

http://git-wip-us.apache.org/repos/asf/knox/blob/6c7a0599/gateway-applications/src/main/resources/applications/knoxauth/js/knoxauth.js
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/js/knoxauth.js
b/gateway-applications/src/main/resources/applications/knoxauth/js/knoxauth.js
deleted file mode 100644
index 8f0efb1..0000000
--- a/gateway-applications/src/main/resources/applications/knoxauth/js/knoxauth.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * 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.
- */
-
-var loginURL = "/gateway/knoxsso/api/v1/websso?originalUrl=";
-var userAgent = navigator.userAgent.toLowerCase();
-var firstLogIn = true;
-
-function get(name){
-   if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(location.search))
-      return decodeURIComponent(name[1]);
-}
-
-var login = function() {
-    var form = document.forms[0];
-    var username = form.username.value;
-    var password = form.password.value;
-    var _login = function(){
-    var originalUrl = get("originalUrl");
-    var idpUrl = loginURL + originalUrl;
-      //Instantiate HTTP Request
-        var request = ((window.XMLHttpRequest) ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"));
-        request.open("POST", loginURL + originalUrl, true);
-        request.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password))
-        request.send(null);
-
-      //Process Response
-        request.onreadystatechange = function(){
-            if (request.readyState == 4) {
-                if (request.status==200 || request.status==204 || request.status==307 ||
request.status==303) {
-                  try { window.location.replace(originalUrl); } 
-                  catch(e) { window.location = originalUrl; }
-                }
-                else {
-                  if (request.status==401) {
-                    $('#errorBox').show();
-                    $('#signInLoading').hide();
-                    $('#signIn').removeAttr('disabled');
-                    $('#errorBox .errorMsg').text("The username or password you entered is
incorrect.");
-                  }
-                }
-            }
-        }
-    }
-
-    if (userAgent.indexOf("firefox") != -1){ //TODO: check version number
-        if (firstLogIn) _login();
-        else logoff(_login);
-    }
-    else{
-        _login();
-    }
-
-    if (firstLogIn) firstLogIn = false;
-}
\ No newline at end of file


Mime
View raw message