Skip to content

Commit

Permalink
Fix org discovery issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Aug 18, 2024
1 parent 5022ccf commit c28ad3b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,11 @@ private boolean validateOrganizationName(String organizationName, Authentication
private boolean validateDiscoveryAttributeValue(String discoveryInput, AuthenticationContext context,
HttpServletResponse response) throws AuthenticationFailedException {

if (!isOrganizationDiscoveryEnabled(context)) {
return false;

Check warning on line 526 in components/org.wso2.carbon.identity.application.authenticator.organization.login/src/main/java/org/wso2/carbon/identity/application/authenticator/organization/login/OrganizationAuthenticator.java

View check run for this annotation

Codecov / codecov/patch

components/org.wso2.carbon.identity.application.authenticator.organization.login/src/main/java/org/wso2/carbon/identity/application/authenticator/organization/login/OrganizationAuthenticator.java#L526

Added line #L526 was not covered by tests
}
String appResideOrgId = getOrgIdByTenantDomain(context.getLoginTenantDomain());

Object discoveryType = context.getProperty(ORGANIZATION_DISCOVERY_TYPE);
try {
if (discoveryType != null) {
Expand Down

0 comments on commit c28ad3b

Please sign in to comment.