diff --git a/src/main/html/css/api-explorer.css b/src/main/html/css/api-explorer.css
index 4368e9909c4..5d93a2ae7f6 100644
--- a/src/main/html/css/api-explorer.css
+++ b/src/main/html/css/api-explorer.css
@@ -2474,3 +2474,45 @@ body {
padding-top: 10px;
color: lightblue;
}
+
+.auth-container {
+ margin: 20px 20px 20px;
+}
+
+.auth_input {
+ margin-top: 6px;
+ padding-top: 6px;
+ padding-bottom: 7px;
+ padding-left: 12px;
+ font-family: inherit;
+
+}
+
+.token-indicator {
+ font-size: smaller;
+ margin-top: 5px;
+ font-style: italic;
+ font-family: inherit;
+}
+
+.osf-token-info {
+ font-size: smaller;
+ margin-top: 5px;
+ font-style: italic;
+ font-family: inherit;
+}
+
+.try-hide {
+ font-family: inherit;
+ font-size: inherit;
+ font-color: inherit;
+}
+
+.put-post-patch-info {
+ background-color: #d9edf7;
+}
+
+#clear-token-link {
+ padding-left: 57px;
+ cursor: pointer;
+}
diff --git a/src/main/html/index.html b/src/main/html/index.html
index a0f9ebcf590..07574f28979 100644
--- a/src/main/html/index.html
+++ b/src/main/html/index.html
@@ -108,7 +108,6 @@
});
}
- // addApiKeyAuthorization();
},
onFailure: function (data) {
log("Unable to Load SwaggerUI");
@@ -116,23 +115,6 @@
docExpansion: "none",
sorter: "alpha"
});
-
- // function addApiKeyAuthorization() {
- // var key = encodeURIComponent($('#input_apiKey')[0].value);
- // if (key && key.trim() != "") {
- // var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("Authorization", "Bearer " + key, "header");
- // window.swaggerUi.api.clientAuthorizations.add("key", apiKeyAuth);
- // log("added key " + key);
- // }
- // }
-
- // $('#input_apiKey').change(addApiKeyAuthorization);
- // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
- /*
- var apiKey = "myApiKeyXXXX123456789";
- $('#input_apiKey').val(apiKey);
- */
-
window.swaggerUi.load();
function log() {
diff --git a/src/main/javascript/helpers/handlebars.js b/src/main/javascript/helpers/handlebars.js
index 58a43d70530..7d21c8957d1 100644
--- a/src/main/javascript/helpers/handlebars.js
+++ b/src/main/javascript/helpers/handlebars.js
@@ -4,4 +4,12 @@ Handlebars.registerHelper('sanitize', function(html) {
// Strip the script tags from the html, and return it as a Handlebars.SafeString
html = html.replace(/