Handle SELF_REGISTER_USER operation type in workflow#77
Merged
PasinduYeshan merged 2 commits intowso2-extensions:masterfrom Sep 10, 2025
Merged
Handle SELF_REGISTER_USER operation type in workflow#77PasinduYeshan merged 2 commits intowso2-extensions:masterfrom
PasinduYeshan merged 2 commits intowso2-extensions:masterfrom
Conversation
11 tasks
Contributor
Author
20 tasks
sadilchamishka
approved these changes
Sep 9, 2025
|
PR builder started |
|
PR builder completed |
jenkins-is-staging
approved these changes
Sep 9, 2025
jenkins-is-staging
left a comment
There was a problem hiding this comment.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/17578460389
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes in this pull request
This pull request introduces support for handling user self-registration as a distinct workflow event in the user management workflow module. The main changes involve recognizing self-registration flows, adding a dedicated workflow request handler, and ensuring that pending self-registration workflows are correctly validated.
Self-registration workflow support:
SELF_REGISTER_USER_EVENTinUserStoreWFConstantsto represent user self-registration as a separate event.SelfRegisterUserWFRequestHandler(extendingAddUserWFRequestHandler) to process self-registration workflow requests, providing a friendly name and description.SelfRegisterUserWFRequestHandleras a service in the OSGi component activation method. [1] [2]User addition and validation logic updates:
UserStoreActionListenerto detect self-registration flows using theIdentityContextandFlowAPI, switching to the new workflow event and handler when appropriate. [1] [2] [3]AddUserWFRequestHandlerto check for pending workflows of bothADD_USER_EVENTand the newSELF_REGISTER_USER_EVENT, preventing duplicate user creation in self-registration scenarios.Merge Order