diff --git a/examples/authz/photoz/README.md b/examples/authz/photoz/README.md index 8ae6b7c95f..7dedbff630 100644 --- a/examples/authz/photoz/README.md +++ b/examples/authz/photoz/README.md @@ -73,7 +73,7 @@ open the ``Client Details`` page. Once there, click on the `Authorization` tab. Click on the ``Select file`` button, which means you want to import a resource server configuration. Now select the file that is located at: - examples/authz/photoz/photoz-restful-api/src/main/resources/photoz-restful-api-authz-service.json + examples/authz/photoz/photoz-restful-api/target/classes/photoz-restful-api-authz-service.json Now click ``Upload`` and the resource server will be updated accordingly. diff --git a/examples/authz/photoz/photoz-html5-client/src/main/webapp/js/app.js b/examples/authz/photoz/photoz-html5-client/src/main/webapp/js/app.js index b552391ca2..0a6bf48c2a 100755 --- a/examples/authz/photoz/photoz-html5-client/src/main/webapp/js/app.js +++ b/examples/authz/photoz/photoz-html5-client/src/main/webapp/js/app.js @@ -82,7 +82,9 @@ module.controller('TokenCtrl', function ($scope, Identity) { } $scope.requestEntitlements = function () { - Identity.authorization.entitlement('photoz-restful-api').then(function (rpt) {}); + Identity.authorization.entitlement('photoz-restful-api').then(function (rpt) { + $scope.showRpt() + }); } $scope.Identity = Identity; @@ -99,6 +101,9 @@ module.controller('AlbumCtrl', function ($scope, $http, $routeParams, $location, $location.path('/'); }); }; + $scope.goto = function (path) { + $location.path(path) + } }); module.controller('ProfileCtrl', function ($scope, $http, $routeParams, $location, Profile) { diff --git a/examples/authz/photoz/photoz-html5-client/src/main/webapp/partials/admin/albums.html b/examples/authz/photoz/photoz-html5-client/src/main/webapp/partials/admin/albums.html index c0cc6e1834..0f4da1461a 100644 --- a/examples/authz/photoz/photoz-html5-client/src/main/webapp/partials/admin/albums.html +++ b/examples/authz/photoz/photoz-html5-client/src/main/webapp/partials/admin/albums.html @@ -1,4 +1,4 @@ -