Skip to content

Commit

Permalink
Merge pull request #6000 from AfraHussaindeen/master_idvp-feature-idv…
Browse files Browse the repository at this point in the history
…-api-permissions

Add scopes(permissions) for the idv claim management API
  • Loading branch information
AfraHussaindeen authored Oct 9, 2024
2 parents 3bf3a06 + 278ba34 commit 98fd573
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,20 @@
description="Delete identity verification provider connectors in the organization (root)"/>
</Scopes>
</APIResource>
<APIResource name="Identity Verification Claim Management API"
identifier="/api/users/v1/(.*)/idv" requiresAuthorization="true"
description="API representation of the Identity Verification Claim Management API" type="TENANT">
<Scopes>
<Scope displayName="View Identity Verification Claim" name="internal_idv_claim_view"
description="View identity verification claims of a user in the organization (root)"/>
<Scope displayName="Create Identity Verification Claim" name="internal_idv_claim_add"
description="Add new identity verification claim for a user in the organization (root)"/>
<Scope displayName="Update Identity Verification Claim" name="internal_idv_claim_update"
description="Update identity verification claim of a user in the organization (root)"/>
<Scope displayName="Verify Identity Verification Claim" name="internal_idv_claim_verify"
description="Veirfy identity verification claim of a user in the organization (root)"/>
</Scopes>
</APIResource>
<APIResource name="Validation Rules API" identifier="/api/server/v1/validation-rules"
requiresAuthorization="true" description="API representation of the Validation Rules API" type="TENANT">
<Scopes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,20 @@
description="Delete identity verification provider connectors in the organization (root)"/>
</Scopes>
</APIResource>
<APIResource name="Identity Verification Claim Management API"
identifier="/api/users/v1/(.*)/idv" requiresAuthorization="true"
description="API representation of the Identity Verification Claim Management API" type="TENANT">
<Scopes>
<Scope displayName="View Identity Verification Claim" name="internal_idv_claim_view"
description="View identity verification claims of a user in the organization (root)"/>
<Scope displayName="Create Identity Verification Claim" name="internal_idv_claim_add"
description="Add new identity verification claim for a user in the organization (root)"/>
<Scope displayName="Update Identity Verification Claim" name="internal_idv_claim_update"
description="Update identity verification claim of a user in the organization (root)"/>
<Scope displayName="Verify Identity Verification Claim" name="internal_idv_claim_verify"
description="Veirfy identity verification claim of a user in the organization (root)"/>
</Scopes>
</APIResource>
<APIResource name="Validation Rules API" identifier="/api/server/v1/validation-rules"
requiresAuthorization="true" description="API representation of the Validation Rules API" type="TENANT">
<Scopes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,20 @@
<Scopes>internal_idvp_delete</Scopes>
</Resource>

<!-- Identity Verification Claim Management API -->
<Resource context="(.*)/api/users/v1/(.*)/idv(.*)" secured="true" http-method="GET">
<Scopes>internal_idv_claim_view</Scopes>
</Resource>
<Resource context="(.*)/api/users/v1/(.*)/idv(.*)" secured="true" http-method="POST">
<Scopes>internal_idv_claim_add</Scopes>
</Resource>
<Resource context="(.*)/api/users/v1/(.*)/idv(.*)" secured="true" http-method="PUT">
<Scopes>internal_idv_claim_update</Scopes>
</Resource>
<Resource context="(.*)/api/users/v1/(.*)/idv/verify" secured="true" http-method="POST">
<Scopes>internal_idv_claim_verify</Scopes>
</Resource>

<!-- [Organization] Authenticators Management API -->
<Resource context="(.*)/o/api/server/v1/authenticators(.*)" secured="true" http-method="GET">
<Scopes>internal_org_authenticator_view</Scopes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,20 @@
<Scopes>internal_idvp_delete</Scopes>
</Resource>

<!-- Identity Verification Claim Management API -->
<Resource context="(.*)/api/users/v1/(.*)/idv(.*)" secured="true" http-method="GET">
<Scopes>internal_idv_claim_view</Scopes>
</Resource>
<Resource context="(.*)/api/users/v1/(.*)/idv(.*)" secured="true" http-method="POST">
<Scopes>internal_idv_claim_add</Scopes>
</Resource>
<Resource context="(.*)/api/users/v1/(.*)/idv(.*)" secured="true" http-method="PUT">
<Scopes>internal_idv_claim_update</Scopes>
</Resource>
<Resource context="(.*)/api/users/v1/(.*)/idv/verify" secured="true" http-method="POST">
<Scopes>internal_idv_claim_verify</Scopes>
</Resource>

<!-- [Organization] Authenticators Management API -->
<Resource context="(.*)/o/api/server/v1/authenticators(.*)" secured="true" http-method="GET">
<Scopes>internal_org_authenticator_view</Scopes>
Expand Down

0 comments on commit 98fd573

Please sign in to comment.