Skip to content

Commit

Permalink
- test baseAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
r-brown committed May 6, 2015
1 parent e4fb233 commit ced8e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
var password = $('#input_password').val();
if (username && username.trim() != "" && password && password.trim() != "") {
var basicAuth = new SwaggerClient.PasswordAuthorization('basic', username, password);
window.swaggerUi.apis.clientAuthorizations.add("basicAuth", basicAuth);
window.swaggerUi.api.clientAuthorizations.add("basicAuth", basicAuth);
log("authorization added: username = " + username + ", password = " + password);
}
}
Expand Down

0 comments on commit ced8e2c

Please sign in to comment.