Skip to content

Commit

Permalink
Merge pull request #3805 from DedunuKarunarathne/master
Browse files Browse the repository at this point in the history
Inject Remote Parameters into the Entitlement Mediator
  • Loading branch information
DedunuKarunarathne authored Dec 4, 2024
2 parents ea9fbc5 + ffa1f53 commit 40f9d40
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.apache.synapse.SynapseConstants;
import org.apache.synapse.SynapseException;
import org.apache.synapse.SynapseLog;
import org.apache.synapse.commons.resolvers.ResolverFactory;
import org.apache.synapse.config.SynapseConfiguration;
import org.apache.synapse.continuation.ContinuationStackManager;
import org.apache.synapse.continuation.ReliantContinuationState;
Expand Down Expand Up @@ -479,9 +480,9 @@ public void init(SynapseEnvironment synEnv) {
callback = new UTEntitlementCallbackHandler();
}

String remoteServiceUrlResolved = remoteServiceUrl;
String remoteServiceUsernameResolved = remoteServiceUserName;
String remoteServicePasswordResolved = remoteServicePassword;
String remoteServiceUrlResolved = ResolverFactory.getInstance().getResolver(remoteServiceUrl).resolve();
String remoteServiceUsernameResolved = ResolverFactory.getInstance().getResolver(remoteServiceUserName).resolve();
String remoteServicePasswordResolved = ResolverFactory.getInstance().getResolver(remoteServicePassword).resolve();

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

0 comments on commit 40f9d40

Please sign in to comment.