From a4d68e7decb56579209f826830bb4c2e6233f62a Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 25 Jun 2015 11:45:01 +0200 Subject: [PATCH] Bug 14461: API authentication for SwaggerUI --- api/v1/doc/css/screen.css | 5 ++++- api/v1/doc/index.html | 41 ++++++++++++++++++++++++----------------- api/v1/doc/lib/hmac-sha256.js | 18 ++++++++++++++++++ 3 files changed, 46 insertions(+), 18 deletions(-) create mode 100644 api/v1/doc/lib/hmac-sha256.js diff --git a/api/v1/doc/css/screen.css b/api/v1/doc/css/screen.css index 32b199b..818252a 100644 --- a/api/v1/doc/css/screen.css +++ b/api/v1/doc/css/screen.css @@ -1216,7 +1216,10 @@ margin: 0 10px 0 0; } .swagger-section #header form#api_selector .input input#input_apiKey { - width: 200px; + width: 100px; +} +.swagger-section #header form#api_selector .input input#input_username { + width: 100px; } .swagger-section #header form#api_selector .input input#input_baseUrl { width: 400px; diff --git a/api/v1/doc/index.html b/api/v1/doc/index.html index c06ab62..b430114 100644 --- a/api/v1/doc/index.html +++ b/api/v1/doc/index.html @@ -20,9 +20,10 @@ + - +