Map commitment actions to compliance-page scopes
OAuth2 tokens with v1:compliance-page could not create commitment groups or items because the IAM actions were never listed in OAuth2ScopeMappings. Document the mapping step so MCP/API work does not skip it again. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -134,6 +134,8 @@ var OAuth2ScopeMappings = map[coredata.OAuth2Scope][]string{
|
||||
ActionMailingListSubscriberList,
|
||||
ActionComplianceFrameworkList,
|
||||
ActionComplianceExternalURLList,
|
||||
ActionCompliancePortalCommitmentGroupList,
|
||||
ActionCompliancePortalCommitmentList,
|
||||
ActionCustomDomainGet,
|
||||
},
|
||||
ScopeV1CompliancePage: {
|
||||
@@ -151,6 +153,8 @@ var OAuth2ScopeMappings = map[coredata.OAuth2Scope][]string{
|
||||
ActionMailingListSubscriberList,
|
||||
ActionComplianceFrameworkList,
|
||||
ActionComplianceExternalURLList,
|
||||
ActionCompliancePortalCommitmentGroupList,
|
||||
ActionCompliancePortalCommitmentList,
|
||||
ActionCustomDomainGet,
|
||||
ActionTrustCenterUpdate,
|
||||
ActionTrustCenterNonDisclosureAgreementUpload,
|
||||
@@ -177,6 +181,14 @@ var OAuth2ScopeMappings = map[coredata.OAuth2Scope][]string{
|
||||
ActionComplianceExternalURLCreate,
|
||||
ActionComplianceExternalURLUpdate,
|
||||
ActionComplianceExternalURLDelete,
|
||||
ActionCompliancePortalCommitmentGroupCreate,
|
||||
ActionCompliancePortalCommitmentGroupUpdate,
|
||||
ActionCompliancePortalCommitmentGroupUpdateRank,
|
||||
ActionCompliancePortalCommitmentGroupDelete,
|
||||
ActionCompliancePortalCommitmentCreate,
|
||||
ActionCompliancePortalCommitmentUpdate,
|
||||
ActionCompliancePortalCommitmentUpdateRank,
|
||||
ActionCompliancePortalCommitmentDelete,
|
||||
ActionCustomDomainCreate,
|
||||
ActionCustomDomainDelete,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user