This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
$(function () { | |
$('#input_apiKey').attr('placeholder', 'JSON Web Token'); | |
$('#input_apiKey').off(); | |
$('#input_apiKey').on('change', function () { | |
var key = this.value; | |
console.info('Set bearer token to: ' + key); | |
if (key && key.trim() !== '') { | |
swaggerUi.api.clientAuthorizations.add("key", new SwaggerClient.ApiKeyAuthorization("Authorization", "Bearer " + key, "header")); | |
} |