From 3b2310136541d285d81c917af2cc760b85c69f63 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 29 Oct 2014 09:12:14 +0100 Subject: [PATCH] KEYCLOAK-726 Downloading a OAuth client installation file results on wrong JSON --- .../theme/admin/base/resources/js/controllers/oauth-clients.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/oauth-clients.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/oauth-clients.js index 87dece9066..5fe70a76eb 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/oauth-clients.js +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/oauth-clients.js @@ -282,7 +282,7 @@ module.controller('OAuthClientInstallationCtrl', function($scope, realm, install $scope.installation = installation; $scope.download = function() { - saveAs(new Blob([$scope.installation], { type: $scope.type }), 'keycloak.json'); + saveAs(new Blob([angular.toJson($scope.installation, true)], { type: 'application/json' }), 'keycloak.json'); } });