Skip to content

Commit

Permalink
Update AuthenticationContextLoader for cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Jan 22, 2025
1 parent 17db819 commit a9a3a69
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.wso2.carbon.identity.application.common.model.IdentityProvider;
import org.wso2.carbon.identity.application.common.model.ServiceProvider;
import org.wso2.carbon.identity.application.mgt.ApplicationManagementServiceImpl;
import org.wso2.carbon.identity.base.AuthenticatorPropertyConstants;
import org.wso2.carbon.idp.mgt.IdentityProviderManagementClientException;
import org.wso2.carbon.idp.mgt.IdentityProviderManagementException;
import org.wso2.carbon.idp.mgt.IdentityProviderManagementServerException;
Expand Down Expand Up @@ -140,7 +141,10 @@ private void optimizeAuthenticatorConfig(AuthenticationContext context)
List<AuthenticatorConfig> authenticatorList = stepConfig.getAuthenticatorList();
for (AuthenticatorConfig authenticatorConfig : authenticatorList) {
authenticatorConfig.setIdPResourceIds(Collections.emptyList());
authenticatorConfig.setApplicationAuthenticator(null);
if (AuthenticatorPropertyConstants.DefinedByType.SYSTEM.equals(
authenticatorConfig.getApplicationAuthenticator().getDefinedByType())) {
authenticatorConfig.setApplicationAuthenticator(null);
}
List<String> idPResourceId = new ArrayList<>();
if (authenticatorConfig.getIdps() != null) {
for (Map.Entry<String, IdentityProvider> entry : authenticatorConfig.getIdps().entrySet()) {
Expand Down

0 comments on commit a9a3a69

Please sign in to comment.