Skip to content

Commit

Permalink
Add app sharing API resource access control configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dewniMW committed Jan 3, 2024
1 parent 0147079 commit e6cc42a
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@
<Scope displayName="Delete API Resource" name="internal_api_resource_delete"/>
</Scopes>
</APIResource>
<APIResource name="Shared Application Management API" identifier="/api/server/v1/applications/share"
requiresAuthorization="true"
description="API representation of the Shared Application Management API" type="TENANT_ADMIN">
<Scopes>
<Scope displayName="Create Shared Application" name="internal_shared_application_create"/>
<Scope displayName="View Shared Application" name="internal_shared_application_view"/>
<Scope displayName="Delete Shared Application" name="internal_shared_application_delete"/>
</Scopes>
</APIResource>
<APIResource name="Application Management API" identifier="/api/server/v1/applications"
requiresAuthorization="true"
description="API representation of the Application Management API" type="TENANT_ADMIN">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
<Scope displayName="Delete API Resource" name="internal_api_resource_delete"/>
</Scopes>
</APIResource>
<APIResource name="Shared Application Management API" identifier="/api/server/v1/applications/share"
requiresAuthorization="true"
description="API representation of the Shared Application Management API" type="TENANT_ADMIN">
<Scopes>
<Scope displayName="Create Shared Application" name="internal_shared_application_create"/>
<Scope displayName="View Shared Application" name="internal_shared_application_view"/>
<Scope displayName="Delete Shared Application" name="internal_shared_application_delete"/>
</Scopes>
</APIResource>
<APIResource name="Application Management API" identifier="/api/server/v1/applications"
requiresAuthorization="true"
description="API representation of the Application Management API" type="TENANT_ADMIN">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,23 @@
<Scopes>internal_keystore_update</Scopes>
</Resource>

<!-- Shared Application Management API -->
<Resource context="(.*)/api/server/v1/applications/(.*)/share" secured="true" http-method="GET">
<Scopes>internal_shared_application_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/applications/(.*)/shared-apps" secured="true" http-method="GET">
<Scopes>internal_shared_application_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/applications/(.*)/share" secured="true" http-method="POST">
<Scopes>internal_shared_application_create</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/applications/(.*)/shared-apps" secured="true" http-method="DELETE">
<Scopes>internal_shared_application_delete</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/applications/(.*)/share/(.*)" secured="true" http-method="DELETE">
<Scopes>internal_shared_application_delete</Scopes>
</Resource>

<!-- [Organization] Application Management API -->
<Resource context="(.*)/o/api/server/v1/applications(.*)" secured="true" http-method="PATCH, PUT">
<Scopes>internal_org_application_mgt_update</Scopes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,23 @@
<Scopes>internal_keystore_update</Scopes>
</Resource>

<!-- Shared Application Management API -->
<Resource context="(.*)/api/server/v1/applications/(.*)/share" secured="true" http-method="GET">
<Scopes>internal_shared_application_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/applications/(.*)/shared-apps" secured="true" http-method="GET">
<Scopes>internal_shared_application_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/applications/(.*)/share" secured="true" http-method="POST">
<Scopes>internal_shared_application_create</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/applications/(.*)/shared-apps" secured="true" http-method="DELETE">
<Scopes>internal_shared_application_delete</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/applications/(.*)/share/(.*)" secured="true" http-method="DELETE">
<Scopes>internal_shared_application_delete</Scopes>
</Resource>

<!-- [Organization] Application Management API -->
<Resource context="(.*)/o/api/server/v1/applications(.*)" secured="true" http-method="PATCH, PUT">
<Scopes>internal_org_application_mgt_update</Scopes>
Expand Down

0 comments on commit e6cc42a

Please sign in to comment.