After I have validated the Oauth access token I try to access it but I just get the error:
{"fault":{"faultstring":"Unresolved variable : verifyapikey.aoVerifyAccess.developer.id","detail":{"errorcode":"entities.UnresolvedVariable"}}}
(Yes the we made a typo the oauth policy name)
I try to add the client id to header with the following config.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <AssignMessage async="false" continueOnError="false" enabled="true" name="amSetAppIdHeader"> <DisplayName>amSetAppIdHeader</DisplayName> <Add> <Headers> <Header name="apigee_app_id">{verifyapikey.aoVerifyAccess.developer.id}</Header> </Headers> </Add> <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> <AssignTo createNew="false" transport="http" type="request"/> </AssignMessage>
Hi @Olof Haglund, for client_id I guess we need to use,
verifyapikey.Verify-API-Key-1.client_id
BTW I did not get any error with developer.id as well. not sure why you are getting the error.
What do you see in the Trace?
I solved it by skipping the `verifyapikey` part. So my variable looks like this.
<Header name="apigee_app_id">{developer.id}</Header>
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |