Skip to content

Commit

Permalink
Modify org discovery resource access control and API categorization
Browse files Browse the repository at this point in the history
  • Loading branch information
dewniMW committed Dec 15, 2023
1 parent 6f67f98 commit b3525e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
<APIResource name="Organization Discovery API"
identifier="/api/server/v1/organizations/discovery"
requiresAuthorization="true"
description="API representation of the Organization Discovery API" type="OTHER">
description="API representation of the Organization Discovery API" type="TENANT_ADMIN">
<Scopes>
<Scope displayName="View Organization Discovery"
name="internal_organization_discovery_view"/>
Expand All @@ -352,14 +352,10 @@
identifier="/o/api/server/v1/organizations/discovery"
requiresAuthorization="true"
description="API representation of the Organization Discovery API"
type="OTHER">
type="ORGANIZATION_ADMIN">
<Scopes>
<Scope displayName="View Organization Discovery"
name="internal_org_organization_discovery_view"/>
<Scope displayName="Update Organization Discovery"
name="internal_org_organization_discovery_update"/>
<Scope displayName="Delete Organization Discovery"
name="internal_org_organization_discovery_delete"/>
</Scopes>
</APIResource>
<APIResource name="Organization Management API" identifier="/api/server/v1/organizations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
<APIResource name="Organization Discovery API"
identifier="/api/server/v1/organizations/discovery"
requiresAuthorization="true"
description="API representation of the Organization Discovery API" type="OTHER">
description="API representation of the Organization Discovery API" type="TENANT_ADMIN">
<Scopes>
<Scope displayName="View Organization Discovery"
name="internal_organization_discovery_view"/>
Expand All @@ -361,14 +361,10 @@
identifier="/o/api/server/v1/organizations/discovery"
requiresAuthorization="true"
description="API representation of the Organization Discovery API"
type="OTHER">
type="ORGANIZATION_ADMIN">
<Scopes>
<Scope displayName="View Organization Discovery"
name="internal_org_organization_discovery_view"/>
<Scope displayName="Update Organization Discovery"
name="internal_org_organization_discovery_update"/>
<Scope displayName="Delete Organization Discovery"
name="internal_org_organization_discovery_delete"/>
</Scopes>
</APIResource>
<APIResource name="Organization Management API" identifier="/api/server/v1/organizations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1046,22 +1046,7 @@
</Resource>

<!-- [Organization] Organization Discovery API -->
<Resource context="(.*)/api/server/v1/organizations/discovery" secured="true" http-method="POST">
<Scopes>internal_org_organization_discovery_update</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/discovery" secured="true" http-method="GET">
<Scopes>internal_org_organization_discovery_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/(.*)/discovery" secured="true" http-method="GET">
<Scopes>internal_org_organization_discovery_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/(.*)/discovery" secured="true" http-method="PUT">
<Scopes>internal_org_organization_discovery_update</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/(.*)/discovery" secured="true" http-method="DELETE">
<Scopes>internal_org_organization_discovery_delete</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/check-discovery" secured="true" http-method="POST">
<Resource context="(.*)/o/api/server/v1/organizations/check-discovery" secured="true" http-method="POST">
<Scopes>internal_org_organization_discovery_view</Scopes>
</Resource>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1073,22 +1073,7 @@
</Resource>

<!-- [Organization] Organization Discovery API -->
<Resource context="(.*)/api/server/v1/organizations/discovery" secured="true" http-method="POST">
<Scopes>internal_org_organization_discovery_update</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/discovery" secured="true" http-method="GET">
<Scopes>internal_org_organization_discovery_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/(.*)/discovery" secured="true" http-method="GET">
<Scopes>internal_org_organization_discovery_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/(.*)/discovery" secured="true" http-method="PUT">
<Scopes>internal_org_organization_discovery_update</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/(.*)/discovery" secured="true" http-method="DELETE">
<Scopes>internal_org_organization_discovery_delete</Scopes>
</Resource>
<Resource context="(.*)/api/server/v1/organizations/check-discovery" secured="true" http-method="POST">
<Resource context="(.*)/o/api/server/v1/organizations/check-discovery" secured="true" http-method="POST">
<Scopes>internal_org_organization_discovery_view</Scopes>
</Resource>

Expand Down

0 comments on commit b3525e2

Please sign in to comment.