cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Mobile Services (CF) - Authentication with ApiKeyOnly

tvinke
Discoverer
0 Kudos

Hello,

i have created a new app in mobile services (CF) and now i want to access with no authentication.

What have i done?

  • MS -> settings -> security -> "download metadata" --> import in Subaccount (after that, the test-button says "trust relationship successfully tested")
  • Security configuration in the new App: ApiKeyOnly
  • Send POST from Postman on xxx/Connections with header x-api-key: <newest api-kex from section api-key> --> response: 400 bad request - message: Device id is invalid for current request.

What am I doing wrong? How can I realize an anonymous access to the app?

Accepted Solutions (0)

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

Server is expecting device id as well

since you are testing it via Postman, you can pass an arbitrary value for testing

x-smp-deviceid: 1234

Please give it a try and see if this works.