Skip to content

Commit ffa1f53

Browse files
Inject Remote Parameters into the Entitlement Mediator
Inject Remote Parameters into the Entitlement Mediator. Fixes:#3798
1 parent ea9fbc5 commit ffa1f53

File tree

1 file changed

+4
-3
lines changed
  • components/mediation/mediators/entitlement-mediator/org.wso2.micro.integrator.identity.entitlement.mediator/src/main/java/org/wso2/micro/integrator/identity/entitlement/mediator

1 file changed

+4
-3
lines changed

components/mediation/mediators/entitlement-mediator/org.wso2.micro.integrator.identity.entitlement.mediator/src/main/java/org/wso2/micro/integrator/identity/entitlement/mediator/EntitlementMediator.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.apache.synapse.SynapseConstants;
3838
import org.apache.synapse.SynapseException;
3939
import org.apache.synapse.SynapseLog;
40+
import org.apache.synapse.commons.resolvers.ResolverFactory;
4041
import org.apache.synapse.config.SynapseConfiguration;
4142
import org.apache.synapse.continuation.ContinuationStackManager;
4243
import org.apache.synapse.continuation.ReliantContinuationState;
@@ -479,9 +480,9 @@ public void init(SynapseEnvironment synEnv) {
479480
callback = new UTEntitlementCallbackHandler();
480481
}
481482

482-
String remoteServiceUrlResolved = remoteServiceUrl;
483-
String remoteServiceUsernameResolved = remoteServiceUserName;
484-
String remoteServicePasswordResolved = remoteServicePassword;
483+
String remoteServiceUrlResolved = ResolverFactory.getInstance().getResolver(remoteServiceUrl).resolve();
484+
String remoteServiceUsernameResolved = ResolverFactory.getInstance().getResolver(remoteServiceUserName).resolve();
485+
String remoteServicePasswordResolved = ResolverFactory.getInstance().getResolver(remoteServicePassword).resolve();
485486

486487
if (remoteServiceUrlKey != null && remoteServiceUrlKey.trim().length() > 0) {
487488
remoteServiceUrlResolved = resolveRegistryEntryText(synEnv, remoteServiceUrlKey);

0 commit comments

Comments
 (0)