Skip to content

Commit

Permalink
Add permissions and scopes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Nov 25, 2024
1 parent f1a771d commit cf879eb
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2308,6 +2308,19 @@
<Scopes>internal_action_mgt_view</Scopes>
</Resource>

<Resource context="(.*)api/server/v1/authenticators/custom(.*)" secured="true" http-method="POST">
<Permissions>/permission/admin/manage/custom_authenticator/create</Permissions>
<Scopes>internal_custom_authenticator_create</Scopes>
</Resource>
<Resource context="(.*)api/server/v1/authenticators/custom(.*)" secured="true" http-method="PUT">
<Permissions>/permission/admin/manage/custom_authenticator/update</Permissions>
<Scopes>internal_custom_authenticator_update</Scopes>
</Resource>
<Resource context="(.*)api/server/v1/authenticators/custom(.*)" secured="true" http-method="DELETE">
<Permissions>/permission/admin/manage/custom_authenticator/delete</Permissions>
<Scopes>internal_custom_authenticator_delete</Scopes>
</Resource>

<Resource context="/carbon(.*)" secured="false" http-method="all"/>
<Resource context="(.*)/myaccount(.*)" secured="false" http-method="all"/>
<Resource context="(.*)/console(.*)" secured="false" http-method="all"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3562,6 +3562,18 @@
<Scopes>internal_action_mgt_view</Scopes>
</Resource>

<Resource context="(.*)api/server/v1/authenticators/custom(.*)" secured="true" http-method="POST">
<Permissions>/permission/admin/manage/custom_authenticator/create</Permissions>
<Scopes>internal_custom_authenticator_create</Scopes>
</Resource>
<Resource context="(.*)api/server/v1/authenticators/custom(.*)" secured="true" http-method="PUT">
<Permissions>/permission/admin/manage/custom_authenticator/update</Permissions>
<Scopes>internal_custom_authenticator_update</Scopes>
</Resource>
<Resource context="(.*)api/server/v1/authenticators/custom(.*)" secured="true" http-method="DELETE">
<Permissions>/permission/admin/manage/custom_authenticator/delete</Permissions>
<Scopes>internal_custom_authenticator_delete</Scopes>
</Resource>

<Resource context="/carbon(.*)" secured="false" http-method="all"/>
<Resource context="(.*)/myaccount(.*)" secured="false" http-method="all"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,17 @@
<Scopes>internal_action_mgt_view</Scopes>
</Resource>

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

<Resource context="/carbon(.*)" secured="false" http-method="all"/>
<Resource context="(.*)/myaccount(.*)" secured="false" http-method="all"/>
<Resource context="(.*)/console(.*)" secured="false" http-method="all"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,17 @@
<Scopes>internal_action_mgt_view</Scopes>
</Resource>

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

<Resource context="/carbon(.*)" secured="false" http-method="all"/>
<Resource context="(.*)/myaccount(.*)" secured="false" http-method="all"/>
<Resource context="(.*)/console(.*)" secured="false" http-method="all"/>
Expand Down

0 comments on commit cf879eb

Please sign in to comment.