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

Adding username input validation userInfohandler #4862 #4913

Merged
merged 4 commits into from
Sep 15, 2023

Conversation

Thumimku
Copy link
Contributor

Proposed changes in this pull request

Issue: wso2/product-is#16357

UserInfoHandlerImpl implements UserInforHandler to modify following methods which uses tenant-wise username type.

  • getTenantAwareUsername
  • getTenantDomain

public String getTenantAwareUsername(String username) {

String tenantDomain = getTenantDomainFromContext();
if (tenantDomain.equalsIgnoreCase(username.substring(username.lastIndexOf('@') + 1))) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen if email username is enabled and email domain and tenant domain are same?

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6195873396

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6195873396
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/6195873396

@Thumimku Thumimku merged commit fdc6529 into wso2:master Sep 15, 2023
2 checks passed
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