Skip to content

Commit

Permalink
Inject Remote Parameters into the Entitlement Mediator
Browse files Browse the repository at this point in the history
Inject Remote Parameters into the Entitlement Mediator. Fixes:wso2#3798
  • Loading branch information
DedunuKarunarathne committed Dec 4, 2024
1 parent ea9fbc5 commit ffa1f53
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 ffa1f53

Please sign in to comment.