diff --git a/dist/index.html b/dist/index.html
index 8fe50d02..0cea26e5 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -47,6 +47,7 @@
if(typeof initOAuth == "function") {
initOAuth({
clientId: "your-client-id",
+ clientSecret: "your-client-secret",
realm: "your-realms",
appName: "your-app-name"
});
diff --git a/dist/lib/swagger-oauth.js b/dist/lib/swagger-oauth.js
index 53031e1a..f1ac074e 100644
--- a/dist/lib/swagger-oauth.js
+++ b/dist/lib/swagger-oauth.js
@@ -5,6 +5,7 @@ var clientId;
var realm;
var oauth2KeyName;
var redirect_uri;
+var clientSecret;
function handleLogin() {
var scopes = [];
@@ -185,6 +186,7 @@ function initOAuth(opts) {
popupMask = (o.popupMask||$('#api-common-mask'));
popupDialog = (o.popupDialog||$('.api-popup-dialog'));
clientId = (o.clientId||errors.push('missing client id'));
+ clientSecret = (o.clientSecret||errors.push('missing client secret'));
realm = (o.realm||errors.push('missing realm'));
if(errors.length > 0){
@@ -207,6 +209,7 @@ function initOAuth(opts) {
window.processOAuthCode = function processOAuthCode(data) {
var params = {
'client_id': clientId,
+ 'client_secret': clientSecret,
'code': data.code,
'grant_type': 'authorization_code',
'redirect_uri': redirect_uri
diff --git a/dist/swagger-ui.js b/dist/swagger-ui.js
index 4f3a55da..731fa61b 100644
--- a/dist/swagger-ui.js
+++ b/dist/swagger-ui.js
@@ -2,7 +2,7 @@
* swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
* @version v2.1.0
* @link http://swagger.io
- * @license Apache 2.0
+ * @license Apache-2.0
*/
(function(){this["Handlebars"] = this["Handlebars"] || {};
this["Handlebars"]["templates"] = this["Handlebars"]["templates"] || {};
@@ -533,7 +533,7 @@ this["Handlebars"]["templates"]["param_list"] = Handlebars.template({"1":functio
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
+ "'>"
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
- + "\n
\n | \n\n |