Skip to content

Commit

Permalink
fix(jans-core): corrected ExternalUmaClaimsGatheringService
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyz committed May 16, 2022
1 parent 1d01ba7 commit cfe1b6d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import io.jans.service.LookupService;
import io.jans.service.custom.script.CustomScriptManager;
import io.jans.service.custom.script.ExternalScriptService;
import io.jans.service.custom.script.ExternalTypeCreator;
import io.jans.util.StringHelper;

import jakarta.ejb.DependsOn;
Expand All @@ -39,6 +40,8 @@ public class ExternalUmaClaimsGatheringService extends ExternalScriptService {
private LookupService lookupService;
@Inject
private CustomScriptManager scriptManager;
@Inject
private ExternalTypeCreator externalTypeCreator;

protected Map<String, CustomScriptConfiguration> scriptInumMap;

Expand Down Expand Up @@ -104,7 +107,7 @@ public CustomScriptConfiguration getScriptByInum(String inum) {
}

private UmaClaimsGatheringType gatherScript(CustomScriptConfiguration script) {
return ExternalUmaRptPolicyService.HOTSWAP_UMA_SCRIPT ? (UmaClaimsGatheringType) ExternalUmaRptPolicyService.hotswap(scriptManager, script, false) : (UmaClaimsGatheringType) script.getExternalType();
return ExternalUmaRptPolicyService.HOTSWAP_UMA_SCRIPT ? (UmaClaimsGatheringType) ExternalUmaRptPolicyService.hotswap(externalTypeCreator, script, false) : (UmaClaimsGatheringType) script.getExternalType();
}

public boolean gather(CustomScriptConfiguration script, int step, UmaGatherContext context) {
Expand Down

0 comments on commit cfe1b6d

Please sign in to comment.