Skip to content
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

Change implementation for adding user realm to username in password recovery flow. #803

Closed

Conversation

RushanNanayakkara
Copy link
Contributor

@RushanNanayakkara RushanNanayakkara commented Feb 1, 2024

Purpose

The current implementation does not add the user realm to the username before the initial user search is conducted through MultiAttributeLoginService. It also does not check if the user realm is not passed at all. This could result in appending user realm as null to the username, which results in a failed search. Additionally if the "PRIMARY" is passed as the realm name in the request wrongly, this implementation still searches through all the user stores and finds the user in a different userstore since UserCoreUtil.addDomainToName function skips adding domain name if it's "PRIMARY". This PR fixes all mentioned issues above.

Related Issues

Dependent PR

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7735832027
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a 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/7735832027

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7884233629
Status: failure

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/8353754162
Status: failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants