Skip to content

Commit

Permalink
Fix cross-tenant scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
chamilaadhi committed Mar 2, 2024
1 parent d9e3088 commit 448687f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private boolean handleScopeValidation(Message message, SignedJWTInfo signedJWTIn
carbonContext.setTenantId(tenantId);
carbonContext.setUsername(username);
message.put(RestApiConstants.AUTH_TOKEN_INFO, oauthTokenInfo);
message.put(RestApiConstants.SUB_ORGANIZATION, orgId);
message.put(RestApiConstants.SUB_ORGANIZATION, tenantDomain);

Check warning on line 192 in components/apimgt/org.wso2.carbon.apimgt.rest.api.util/src/main/java/org/wso2/carbon/apimgt/rest/api/util/impl/OAuthJwtAuthenticatorImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.util/src/main/java/org/wso2/carbon/apimgt/rest/api/util/impl/OAuthJwtAuthenticatorImpl.java#L192

Added line #L192 was not covered by tests
if (!tenantDomain.equals(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
APIUtil.loadTenantConfigBlockingMode(tenantDomain);
}
Expand Down

0 comments on commit 448687f

Please sign in to comment.