Looks like you are missing the mapIdentifier attribute in the KVM policy. This attribute is used as the identifier for the KVM name which the policy will look for, to fetch the KVM entries.
Checkout the “Get KVM from a literal” tab here. For example, if your KVM name is “userCreds” under which you create the two entries, then in your KVM policy, you should have
All I am trying to do is set the “username” and “password” parms that are referenced in the Basic Auth so I can see it this is going to run. can you code up the KVM and supply this so that it works? This is what I just tried and it did not work either:
NOTE: I have prefixed the variable name as “private.” on purpose as that is how encrypted KVM works. For more details on this - refer to “Get encrypted value from KVM” tab in this link
How or where do I go to create this KVM… my only experience is creating them from within the ‘development’ tab within the API proxy. But how you created it above looks different and I can’t seem to see where to create it.
I have confirmed that i can hit that URL from anywhere outside the company. It then prompts me for a userid and password which i key in and it runs fine returning data.
But when i try to run my API proxy “TestAuth” through either:
@Jeff Lutzow - this is a different issue then. How are you hitting your target server ? Are you using the URL directly within the proxy or configured via TargetServer ? If its TargetServer, please make sure you have enabled the SSLInfo details as mentioned here
Some how I need to be able to set this up to hit that backend Target URL using Basic Authentication. It is easy in Postman but I can’t seem to get it to work here in APIGEE.
If you want to set a proxy up to hit that service and then show me that would be great. I would expect that I either define my userid/password to the environment like you showed me earlier or that it would prompt me for the userid/password when I run it.