KEYCLOAK-650

Server error while trying to download keycloak.json for oauth client
This commit is contained in:
Stian Thorgersen 2014-08-29 16:08:42 +02:00
parent bcbf5da4b8
commit fb18789b05
2 changed files with 5 additions and 2 deletions

View file

@ -280,7 +280,10 @@ module.controller('OAuthClientInstallationCtrl', function($scope, realm, install
$scope.realm = realm;
$scope.oauth = oauth;
$scope.installation = installation;
$scope.download = OAuthClientInstallation.url({ realm: $routeParams.realm, oauth: $routeParams.oauth });
$scope.download = function() {
saveAs(new Blob([$scope.installation], { type: $scope.type }), 'keycloak.json');
}
});
module.controller('OAuthClientRevocationCtrl', function($scope, realm, oauth, OAuthClient, $location, Dialog, Notifications) {

View file

@ -26,7 +26,7 @@
</form>
<div class="pull-right form-actions">
<a class="btn btn-primary btn-lg" href="{{download}}" download="keycloak.json" type="submit">Download</a>
<a class="btn btn-primary btn-lg" data-ng-click="download()" type="submit">Download</a>
</div>
</div>