Skip to content

Commit

Permalink
Add scopes for SMS template management UI (#6049)
Browse files Browse the repository at this point in the history
* Add scopes for SMS template management

* Add sms template feature for default json

* Add custom sms templates
  • Loading branch information
Avarjana authored Oct 24, 2024
1 parent 6c9f706 commit bed8ebf
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,25 @@
</Read>
</Scopes>
</APIResourceCollection>
<APIResourceCollection name="smsTemplates" displayName="SMS Templates" type="tenant">
<Scopes>
<Feature>
<Scope name="console:smsTemplates"/>
</Feature>
<Update>
<Scope name="internal_notification_mgt_update"/>
</Update>
<Delete>
<Scope name="internal_notification_mgt_delete"/>
</Delete>
<Create>
<Scope name="internal_notification_mgt_create"/>
</Create>
<Read>
<Scope name="internal_notification_mgt_view"/>
</Read>
</Scopes>
</APIResourceCollection>
<APIResourceCollection name="groups" displayName="Groups" type="tenant">
<Scopes>
<Feature>
Expand Down Expand Up @@ -782,6 +801,22 @@
</Read>
</Scopes>
</APIResourceCollection>
<APIResourceCollection name="org_smsTemplates" displayName="SMS Templates" type="organization">
<Scopes>
<Feature>
<Scope name="console:org:smsTemplates"/>
</Feature>
<Update>
</Update>
<Delete>
</Delete>
<Create>
</Create>
<Read>
<Scope name="internal_org_template_mgt_view"/>
</Read>
</Scopes>
</APIResourceCollection>
<APIResourceCollection name="org_gettingStarted" displayName="Home Page" type="organization">
<Scopes>
<Feature>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,25 @@
</Read>
</Scopes>
</APIResourceCollection>
<APIResourceCollection name="smsTemplates" displayName="SMS Templates" type="tenant">
<Scopes>
<Feature>
<Scope name="console:smsTemplates"/>
</Feature>
<Update>
<Scope name="internal_notification_mgt_update"/>
</Update>
<Delete>
<Scope name="internal_notification_mgt_delete"/>
</Delete>
<Create>
<Scope name="internal_notification_mgt_create"/>
</Create>
<Read>
<Scope name="internal_notification_mgt_view"/>
</Read>
</Scopes>
</APIResourceCollection>
<APIResourceCollection name="groups" displayName="Groups" type="tenant">
<Scopes>
<Feature>
Expand Down Expand Up @@ -823,6 +842,22 @@
</Read>
</Scopes>
</APIResourceCollection>
<APIResourceCollection name="org_smsTemplates" displayName="SMS Templates" type="organization">
<Scopes>
<Feature>
<Scope name="console:org:smsTemplates"/>
</Feature>
<Update>
</Update>
<Delete>
</Delete>
<Create>
</Create>
<Read>
<Scope name="internal_org_template_mgt_view"/>
</Read>
</Scopes>
</APIResourceCollection>
<APIResourceCollection name="org_gettingStarted" displayName="Home Page" type="organization">
<Scopes>
<Feature>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,24 @@
description="Manage email templates in the organization from the Console"/>
</Scopes>
</APIResource>
<APIResource name="SMS Template Management Feature" identifier="console:smsTemplates"
requiresAuthorization="true"
description="Resource representation of the SMS Template Management Feature"
type="CONSOLE_FEATURE">
<Scopes>
<Scope displayName="SMS Template Feature" name="console:smsTemplates"
description="Manage SMS templates from the Console"/>
</Scopes>
</APIResource>
<APIResource name="SMS Template Management Feature" identifier="console:org:smsTemplates"
requiresAuthorization="true"
description="Resource representation of the SMS Template Management Feature"
type="CONSOLE_ORG_FEATURE">
<Scopes>
<Scope displayName="SMS Template Feature" name="console:org:smsTemplates"
description="Manage SMS templates in the organization from the Console"/>
</Scopes>
</APIResource>
<APIResource name="Console Setting Management Feature" identifier="console:settings"
requiresAuthorization="true"
description="Resource representation of the Console Setting Management Feature"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,24 @@
description="Manage email templates in the organization from the Console"/>
</Scopes>
</APIResource>
<APIResource name="SMS Template Management Feature" identifier="console:smsTemplates"
requiresAuthorization="true"
description="Resource representation of the SMS Template Management Feature"
type="CONSOLE_FEATURE">
<Scopes>
<Scope displayName="SMS Template Feature" name="console:smsTemplates"
description="Manage SMS templates from the Console"/>
</Scopes>
</APIResource>
<APIResource name="SMS Template Management Feature" identifier="console:org:smsTemplates"
requiresAuthorization="true"
description="Resource representation of the SMS Template Management Feature"
type="CONSOLE_ORG_FEATURE">
<Scopes>
<Scope displayName="SMS Template Feature" name="console:org:smsTemplates"
description="Manage SMS templates in the organization from the Console"/>
</Scopes>
</APIResource>
<APIResource name="Console Setting Management Feature" identifier="console:settings"
requiresAuthorization="true"
description="Resource representation of the Console Setting Management Feature"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,43 @@
"description": "This email is sent to the impersonated user when the impersonation session is started"
}
],
"console.extensions.smsTemplates": [
{
"description": "This SMS is sent when a user registers and needs to confirm their account.",
"displayName": "Account Confirmation",
"id": "YWNjb3VudGNvbmZpcm1hdGlvbg"
},
{
"description": "This SMS is sent when a user requests to recover their username.",
"displayName": "Account ID Recovery",
"id": "YWNjb3VudElkUmVjb3Zlcnk"
},
{
"description": "This SMS is sent to notify the user of a successful password reset.",
"displayName": "Password Reset Success",
"id": "cGFzc3dvcmRSZXNldFN1Y2Vzcw"
},
{
"description": "This SMS is sent when a user initiates a password reset.",
"displayName": "Password Reset",
"id": "cGFzc3dvcmRSZXNldA"
},
{
"description": "This SMS is sent when a user requests to resend the OTP for password reset.",
"displayName": "Resend Password Reset",
"id": "cmVzZW5kUGFzc3dvcmRSZXNldA"
},
{
"description": "This SMS is sent to provide a one-time password for verification.",
"displayName": "SMS OTP",
"id": "U01TT1RQ"
},
{
"description": "This SMS is sent to verify the user's mobile number after an update.",
"displayName": "Verify Mobile On Update",
"id": "dmVyaWZ5TW9iaWxlT25VcGRhdGU"
}
],
"console.ui.app_copyright": "WSO2 Identity Server",
"console.ui.is_cookie_consent_banner_enabled": false,
"console.ui.is_editing_system_roles_allowed": true,
Expand Down Expand Up @@ -1230,6 +1267,12 @@
"console.email_templates.scopes.read": ["internal_email_mgt_view"],
"console.email_templates.scopes.update": ["internal_email_mgt_update"],
"console.email_templates.scopes.delete": ["internal_email_mgt_delete"],
"console.sms_templates.enabled": false,
"console.sms_templates.scopes.feature": ["console:smsTemplates"],
"console.sms_templates.scopes.create": ["internal_notification_mgt_create"],
"console.sms_templates.scopes.read": ["internal_notification_mgt_view"],
"console.sms_templates.scopes.update": ["internal_notification_mgt_update"],
"console.sms_templates.scopes.delete": ["internal_notification_mgt_delete"],
"console.event_publishing.enabled": false,
"console.event_publishing.scopes.feature": ["console:eventPublishing"],
"console.event_publishing.scopes.create": ["internal_event_config_update"],
Expand Down

0 comments on commit bed8ebf

Please sign in to comment.