cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup basic Authentication and validate the user in SAP APIM proxy Preflow?

ravi_nagarvwr
Explorer
0 Kudos

Hello Experts,

I am new to SAP APIM and trying to expose ODATA API through SAP APIM.

Through the SAP Developer community & and other blogs, I have created an API Proxy, and it's working fine.

However, an API is accessible to everyone. anyone who has the API Proxy URL can access it.

I want to set up basic authentication for my API Proxy.

Can you please help me how I can achieve that?

Thanks,

Ravi

View Entire Topic
Sriprasadsbhat
Active Contributor
0 Kudos

Hello Ravi,

Below would help you.

https://developers.sap.com/tutorials/hcp-apim-verify-api.html

Regards,

Sriprasad Shivaram Bhat

ravi_nagarvwr
Explorer
0 Kudos

Hi Sriprasad,

I have followed this blog till the end (Step 14), but I am getting an error:

{
"fault":{
"faultstring":"Failed to resolve API Key variable request.header.APIKey",
"detail":{
"errorcode":"steps.oauth.v2.FailedToResolveAPIKey"
}
}
}

Please let me know what should I do!