Skip to content

Commit

Permalink
Add B2B permissions for v1/authenticators/custom endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Feb 9, 2025
1 parent 5e1dcbe commit bb80e86
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1534,4 +1534,16 @@
description="Delete user defined local authenticator"/>
</Scopes>
</APIResource>
<APIResource name="User defined local authenticator API" identifier="/o/api/server/v1/authenticators/custom"
requiresAuthorization="true"
description="API representation of the User Defined Local Authenticator Management API" type="TENANT">
<Scopes>
<Scope displayName="Create Authenticator" name="internal_custom_authenticator_create"
description="Create new user defined local authenticator"/>
<Scope displayName="Update Authenticator" name="internal_custom_authenticator_update"
description="Update user defined local authenticator"/>
<Scope displayName="Delete Authenticator" name="internal_custom_authenticator_delete"
description="Delete user defined local authenticator"/>
</Scopes>
</APIResource>
</APIResources>
Original file line number Diff line number Diff line change
Expand Up @@ -1551,4 +1551,16 @@
description="Delete user defined local authenticator"/>
</Scopes>
</APIResource>
<APIResource name="User defined local authenticator API" identifier="/o/api/server/v1/authenticators/custom"
requiresAuthorization="true"
description="API representation of the User Defined Local Authenticator Management API" type="ORGANIZATION">
<Scopes>
<Scope displayName="Create Authenticator" name="internal_custom_authenticator_create"
description="Create new user defined local authenticator"/>
<Scope displayName="Update Authenticator" name="internal_custom_authenticator_update"
description="Update user defined local authenticator"/>
<Scope displayName="Delete Authenticator" name="internal_custom_authenticator_delete"
description="Delete user defined local authenticator"/>
</Scopes>
</APIResource>
</APIResources>
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,17 @@
<Scopes>internal_custom_authenticator_delete</Scopes>
</Resource>

<!-- [Organization] User defined local authenticator API -->
<Resource context="(.*)/o/api/server/v1/authenticators/custom" secured="true" http-method="POST">
<Scopes>internal_custom_authenticator_create</Scopes>
</Resource>
<Resource context="(.*)/o/api/server/v1/authenticators/custom(.*)" secured="true" http-method="PUT">
<Scopes>internal_custom_authenticator_update</Scopes>
</Resource>
<Resource context="(.*)/o/api/server/v1/authenticators/custom(.*)" secured="true" http-method="DELETE">
<Scopes>internal_custom_authenticator_delete</Scopes>
</Resource>

<!-- [Organization] User share API -->
<Resource context="(.*)/o/api/server/v1/users/share(.*)" secured="true" http-method="POST">
<Scopes>internal_org_user_share</Scopes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,17 @@
<Scopes>internal_custom_authenticator_delete</Scopes>
</Resource>

<!-- [Organization] User defined local authenticator API -->
<Resource context="(.*)/o/api/server/v1/authenticators/custom" secured="true" http-method="POST">
<Scopes>internal_custom_authenticator_create</Scopes>
</Resource>
<Resource context="(.*)/o/api/server/v1/authenticators/custom(.*)" secured="true" http-method="PUT">
<Scopes>internal_custom_authenticator_update</Scopes>
</Resource>
<Resource context="(.*)/o/api/server/v1/authenticators/custom(.*)" secured="true" http-method="DELETE">
<Scopes>internal_custom_authenticator_delete</Scopes>
</Resource>

<!-- [Organization] User share API -->
<Resource context="(.*)/o/api/server/v1/users/share(.*)" secured="true" http-method="POST">
<Scopes>internal_org_user_share</Scopes>
Expand Down

0 comments on commit bb80e86

Please sign in to comment.