Quellcode durchsuchen

updated client lib

bubble
Tony Tam vor 9 Jahren
Ursprung
Commit
7ff221485b
3 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen
  1. +1
    -1
      dist/lib/swagger-client.js
  2. +5
    -1
      dist/lib/swagger-oauth.js
  3. +1
    -1
      lib/swagger-client.js

+ 1
- 1
dist/lib/swagger-client.js Datei anzeigen

@@ -2822,7 +2822,7 @@ JQueryHttpClient.prototype.execute = function(obj) {
if(contentType) {
if(contentType.indexOf("application/json") === 0 || contentType.indexOf("+json") > 0) {
try {
out.obj = response.responseJSON || {};
out.obj = response.responseJSON || JSON.parse(out.data) || {};
} catch (ex) {
// do not set out.obj
log("unable to parse JSON content");


+ 5
- 1
dist/lib/swagger-oauth.js Datei anzeigen

@@ -4,6 +4,7 @@ var popupDialog;
var clientId;
var realm;
var oauth2KeyName;
var redirect_uri;

function handleLogin() {
var scopes = [];
@@ -141,6 +142,8 @@ function handleLogin() {

window.enabledScopes=scopes;

redirect_uri = redirectUrl;

url += '&redirect_uri=' + encodeURIComponent(redirectUrl);
url += '&realm=' + encodeURIComponent(realm);
url += '&client_id=' + encodeURIComponent(clientId);
@@ -199,7 +202,8 @@ function processOAuthCode(data) {
var params = {
'client_id': clientId,
'code': data.code,
'grant_type': 'authorization_code'
'grant_type': 'authorization_code',
'redirect_uri': redirect_uri
}
$.ajax(
{


+ 1
- 1
lib/swagger-client.js Datei anzeigen

@@ -2822,7 +2822,7 @@ JQueryHttpClient.prototype.execute = function(obj) {
if(contentType) {
if(contentType.indexOf("application/json") === 0 || contentType.indexOf("+json") > 0) {
try {
out.obj = response.responseJSON || {};
out.obj = response.responseJSON || JSON.parse(out.data) || {};
} catch (ex) {
// do not set out.obj
log("unable to parse JSON content");


Laden…
Abbrechen
Speichern