diff --git a/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java b/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java index a631eb1103..573fbb381f 100755 --- a/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java +++ b/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java @@ -713,6 +713,12 @@ public class AccountFormService extends AbstractSecuredLocalService { return forwardToPage("resource", AccountPages.RESOURCE_DETAIL); } + @Path("resource/{resource_id}/grant") + @GET + public Response resourceDetailPageAfterGrant(@PathParam("resource_id") String resourceId) { + return resourceDetailPage(resourceId); + } + @Path("resource/{resource_id}/grant") @POST public Response grantPermission(@PathParam("resource_id") String resourceId, @FormParam("action") String action, @FormParam("permission_id") String[] permissionId, @FormParam("requester") String requester) { @@ -821,6 +827,12 @@ public class AccountFormService extends AbstractSecuredLocalService { return forwardToPage("resource", AccountPages.RESOURCES); } + @Path("resource/{resource_id}/share") + @GET + public Response resourceDetailPageAfterShare(@PathParam("resource_id") String resourceId) { + return resourceDetailPage(resourceId); + } + @Path("resource/{resource_id}/share") @POST public Response shareResource(@PathParam("resource_id") String resourceId, @FormParam("user_id") String[] userIds, @FormParam("scope_id") String[] scopes) {