Skip to content

Commit 6eddd8c

Browse files
authored
Merge pull request #4769 from indeewari/resend_code_doc_update_5_10
[5.10] Adding permission for resend-code endpoint at toml level
2 parents 81574c7 + e0a71ac commit 6eddd8c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

en/identity-server/5.10.0/docs/develop/using-the-self-sign-up-rest-apis.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,19 @@
66

77
!!! info "Related Links"
88
For information on self-registration via the UI instead, see [Self-Registration and Account Confirmation](../../learn/self-registration-and-account-confirmation).
9+
10+
## Enhance default permissions for the resend-code endpoint.
11+
12+
The [resend-code endpoint](https://api-docs.wso2.com/apidocs/is/is510/self-registration/#!/operations#SelfRegister#resendCodePost) of the self sign-up rest APIs is used to resend the confirmation code to an authenticated user. While no scopes are required to invoke this API by default, we recommend restricting access to this endpoint using scopes, before deploying to production.
13+
14+
To do so, add the following configurations to the `<IS_HOME>/repository/conf/deployment.toml` file
15+
16+
17+
```toml
18+
[resource.access_control]
19+
context = "(.*)/api/identity/user/v1.0/resend-code(.*)"
20+
secure = "true"
21+
http_method = "all"
22+
permissions=["/permission/admin/manage/identity/identitymgt"]
23+
scopes=["internal_identity_mgt_view","internal_identity_mgt_update","internal_identity_mgt_create","internal_identity_mgt_delete"]
24+
```

0 commit comments

Comments
 (0)