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'); } });