Enable pre profile update action to allow modifying user claims at profile update#8124
Enable pre profile update action to allow modifying user claims at profile update#8124Lashen1227 wants to merge 14 commits into
Conversation
…tionServiceComponentHolder for realm service
…ResponseProcessor for improved claim handling and user store management
… store management
…o prevent modification of immutable claims
…Builder and PreUpdateProfileResponseProcessor
…fileResponseProcessor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
AI Agent Log Improvement Checklist
- The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
- Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.
✅ Before merging this pull request:
- Review all AI-generated comments for accuracy and relevance.
- Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
…UpdateProfileRequestBuilderTest
|



This pull request enhances support for modifying user claims through user profile update actions and adds comprehensive test coverage for the new functionality.
Supported claim modification operations:
ADDREPLACEREMOVESample Response Payload
{ "actionStatus": "SUCCESS", "operations": [ { "op": "add", "path": "/user/claims[uri=http://wso2.org/claims/country]", "value": "Sri Lanka" }, { "op": "replace", "path": "/user/claims[uri=http://wso2.org/claims/mobileNumbers]", "value": ["0771234567", "0717654321"] }, { "op": "remove", "path": "/user/claims[uri=http://wso2.org/claims/country]" } ] }Sample Payloads:
Claim Extraction and Validation Improvements
Related PR