KEYCLOAK-10783 Fix internal server error when logging out after sharing my resource

This commit is contained in:
Kohei Tamura 2019-07-05 20:01:32 +09:00 committed by Pedro Igor
parent 9215957bd0
commit 55a6141bff

View file

@ -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) {