cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP API Management and SAP CPI Odata Adapter $metadata Issue

brandonleenaido
Explorer
0 Kudos
642

Good day,

While developing an OData API to a SuccessFactors backend the resources are exposed.

We added a policy to this API to verify the APIKey.

We can access the resources in POSTMAN.

However when using a SAP CPI odata adapter it tries to query the metadata while passing the correct APIKey, we cannot access /$metadata

We get the error:

{

"fault": {

"faultstring": "Invalid ApiKey for given resource",

"detail": {

"errorcode": "oauth.v2.InvalidApiKeyForGivenResource"

}

}

}

API Query: {{BASE_API_ENDPOINT}}/SF/ECPersonalInformation/$metadata

Has anyone experienced this before and able to resolve?

Regards,

Brandon

Accepted Solutions (1)

Accepted Solutions (1)

Bais
Participant
0 Kudos

How do you pass APIkey?

show us a screenshot of your HTTP connection properties.

brandonleenaido
Explorer
0 Kudos

APIKey is passed in the request header.

Bais
Participant
0 Kudos

This is Postman, I mean cpi Adapter HTTP connection properties.

Answers (0)