Hello All,
i am trying to use username and password stored in KVM under
DK-UCS-DS-Credential as a basic auth username and password
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<KeyValueMapOperations name="Apigee-Credentials-Key-Value-Map" mapIdentifier="DK-UCS-DS-Credential" continueOnError="false" enabled="true">
<DisplayName>Apigee Credentials Key Value Map</DisplayName>
<Get assignTo="credentials.username">
<Key>
<Parameter>username</Parameter>
</Key>
</Get>
<Get assignTo="credentials.password">
<Key>
<Parameter>password</Parameter>
</Key>
</Get>
<Scope>apiproxy</Scope>
</KeyValueMapOperations>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BasicAuthentication name="Apigee-Basic-Authentication">
<DisplayName>Apigee Basic Authentication</DisplayName>
<Operation>Encode</Operation>
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
<User ref="credentials.username"/>
<Password ref="credentials.username"/>
<AssignTo>request.header.Authorization</AssignTo>
</BasicAuthentication>
i am getting below message, although username and password defined in KVM
{"fault":{"faultstring":"Unresolved variable : credentials.username","detail":{"errorcode":"steps.basicauthentication.UnresolvedVariable"}}}
Any help please