-
Notifications
You must be signed in to change notification settings - Fork 168
Restrict allowed headers and parameters from Pre update password and pre update profile actions #963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…pre update profile actions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR restricts the configuration of allowed headers and parameters for Pre Update Password and Pre Update Profile actions, as these features are not supported during action execution. The changes ensure that API consumers cannot attempt to configure unsupported functionality.
- Remove allowed headers and parameters examples from OpenAPI documentation
- Add validation to reject requests containing allowed headers or parameters for these action types
- Include descriptive error messages for unsupported configuration attempts
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Actions.yaml | Removes allowedHeaders and allowedParameters examples from Pre Update Password and Pre Update Profile action documentation |
| PreUpdateProfileActionMapper.java | Adds validation to reject allowed headers/parameters configuration with appropriate error handling |
| PreUpdatePasswordActionMapper.java | Adds validation to reject allowed headers/parameters configuration with appropriate error handling |
| ActionMgtEndpointConstants.java | Defines new error messages for unsupported allowed headers and parameters |
...so2/carbon/identity/api/server/action/management/v1/mapper/PreUpdateProfileActionMapper.java
Show resolved
Hide resolved
|
PR builder started |
...o2/carbon/identity/api/server/action/management/v1/mapper/PreUpdatePasswordActionMapper.java
Show resolved
Hide resolved
...o2/carbon/identity/api/server/action/management/v1/mapper/PreUpdatePasswordActionMapper.java
Show resolved
Hide resolved
...so2/carbon/identity/api/server/action/management/v1/mapper/PreUpdateProfileActionMapper.java
Show resolved
Hide resolved
...so2/carbon/identity/api/server/action/management/v1/mapper/PreUpdateProfileActionMapper.java
Show resolved
Hide resolved
AI Agent Log Improvement Checklist
✅ Before merging this pull request:
|
|
PR builder completed |
jenkins-is-staging
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/16892102230
Purpose
Related Issue