-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add conditional authentication functions for dynamic password migration #158
Add conditional authentication functions for dynamic password migration #158
Conversation
Unit test issue/ build is fixed with #160 |
…entity-conditional-auth-functions into thamindu-pw-mig-utils
0fb3fe8
to
0a67d64
Compare
0a67d64
to
f952fc5
Compare
PR builder started |
PR builder completed |
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/9163077211
Purpose
Currently the approach to migrate users from external systems into WSO2 identity server is to export the user profiles from the existing systems and import into WSO2 Identity Server using the SCIM APIs. However with that method, it is not possible to import the hashed user passwords and have to trigger password resets for each user in the new system. This is not a preferred approach in many cases and need to provide a way to dynamically update user passwords on the fly.
Goals
Provide a way to dynamically update user passwords on the fly for the migrating users.
Approach
This can be achieved using a conditional authentication script. This PR introduces two conditional authentication functions to be used as helper functions for password migration processes. The functions will be as follows.
resolveMultiAttributeLoginIdentifier
Function to resolve username from the provided login identifier when multi attribute login is enabled in the organization.
Parameters:
Sample usage:
updateUserPassword
Function to update the user password.
Parameters:
Sample usage:
Related issue
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning