KEYCLOAK-10783 Fix internal server error when logging out after sharing my resource
This commit is contained in:
parent
9215957bd0
commit
55a6141bff
1 changed files with 12 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue